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,