mirror of
https://github.com/ViViDboarder/hassio-addon-rclone.git
synced 2024-12-22 03:27:44 +00:00
Fix adding time gaps
Incorrectly checking for length of variable
This commit is contained in:
parent
f678ec65b9
commit
a97c838413
@ -8,7 +8,7 @@ if bashio::config.true 'prune.delete'; then
|
||||
TIMEGAPS_DELETE="--delete"
|
||||
fi
|
||||
|
||||
if [ -z "$TIMEGAPS_RULES" ] && [ -z "$TIMEGAPS_CRON" ]; then
|
||||
if [ -n "$TIMEGAPS_RULES" ] && [ -n "$TIMEGAPS_CRON" ]; then
|
||||
COMMAND="timegaps $TIMEGAPS_DELETE $TIMEGAPS_RULES /backups/*.tar"
|
||||
|
||||
echo "$TIMEGAPS_CRON $COMMAND" >> /etc/crontabs/root
|
||||
|
Loading…
Reference in New Issue
Block a user