From 69e0c7fc67d232a9f0520f38158c381a0b4712c9 Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Sat, 6 Mar 2021 16:34:40 +0100 Subject: [PATCH] Remove the 0 prefix (which makes the number octal) --- restic-cron | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restic-cron b/restic-cron index e14eb6a..3334b71 100755 --- a/restic-cron +++ b/restic-cron @@ -51,7 +51,7 @@ if [ $status -ne 0 ]; then fi # Verify the backup every 4 weeks -if [ $(($(date +%W) % 4)) = 0 ]; then +if [ $(($(date +%-W) % 4)) = 0 ]; then test -z "$RESTIC_QUIET" && echo "I: Check step…" restic $RESTIC_QUIET check status=$?