]> gitweb.hhaalo.de Git - simple-backup.git/commitdiff
fix: week seven days
authorBastian Dehn <hhaalo@arcor.de>
Sat, 8 Dec 2018 21:38:01 +0000 (22:38 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 8 Dec 2018 21:38:01 +0000 (22:38 +0100)
backup

diff --git a/backup b/backup
index d5c90f73c8cb783697ef19c925fb93385daee485..a453655cc5db52958f82a28433533f5d9f08ee81 100755 (executable)
--- a/backup
+++ b/backup
@@ -371,12 +371,12 @@ IsBackupOld()
                fi
                ;;
        "week")
-               if [ $diff -lt -7 ]; then
+               if [ $diff -le -7 ]; then
                        echo 1
                fi
                ;;
        "month")
-               if [ $diff -lt -30 ]; then
+               if [ $diff -le -30 ]; then
                        echo 1
                fi
                ;;