From a97c8384132a92b8543fb5ae68af71db12929e81 Mon Sep 17 00:00:00 2001 From: Ian Date: Tue, 14 Dec 2021 21:23:22 -0800 Subject: [PATCH] Fix adding time gaps Incorrectly checking for length of variable --- rclone/rootfs/etc/cont-init.d/timegaps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rclone/rootfs/etc/cont-init.d/timegaps.sh b/rclone/rootfs/etc/cont-init.d/timegaps.sh index 2fa2698..d5ede89 100755 --- a/rclone/rootfs/etc/cont-init.d/timegaps.sh +++ b/rclone/rootfs/etc/cont-init.d/timegaps.sh @@ -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