Apply CLI arguments
This commit is contained in:
parent
a0ce3925a8
commit
ab92e8b5f6
18
atom
18
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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user