Fix adding time gaps

Incorrectly checking for length of variable
This commit is contained in:
Ian 2021-12-14 21:23:22 -08:00
parent f678ec65b9
commit a97c838413

View File

@ -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