From ab92e8b5f68895bb966ec33573305b7c8ca1914c Mon Sep 17 00:00:00 2001 From: Vincent Riquer Date: Wed, 29 May 2013 13:51:21 +0200 Subject: [PATCH] Apply CLI arguments --- atom | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/atom b/atom index ed283b9..7d21def 100755 --- a/atom +++ b/atom @@ -115,6 +115,11 @@ fi getConfig set +H + +# Apply CLI overrides +[ -n "$cliload" ] && maxload=$cliload +[ -n "$cliltimer" ] && loadinterval=$cliltimer + (( debug || cfgdump )) && printConfig (( cfgdump )) && exit @@ -290,6 +295,19 @@ echo "Suppressed $deleted files, $removed removed from database" updateTags +for forcedest in "${forceall[@]}" +do + if forcedestid=$(Select destinations id <<<"name = $forcedest") + then + echo "Resetting destination files timestamps on" \ + "$forcedest ($forcedestid)..." + Update destination_files last_change 1 \ + <<<"destination_id = $forcedestid" + else + echo "Destination $forcedest does not exist!" >&2 + fi +done + echo ' CREATE TEMPORARY TABLE tasks( id INTEGER PRIMARY KEY,