]> arthur.barton.de Git - backup-script.git/commitdiff
Fix backup-status not showing result code for successful backups
authorAlexander Barton <alex@barton.de>
Tue, 24 Nov 2015 15:11:10 +0000 (16:11 +0100)
committerAlexander Barton <alex@barton.de>
Tue, 24 Nov 2015 15:12:41 +0000 (16:12 +0100)
This bug has been introduced by commit e9d32c68 ("backup-status: Show
more information from stamp file"). Oops!

bin/backup-status

index eb423db01d009707acaa246d8942577e7bffa496..dfdf15e43ebc674f2afcaabfac2b39737af14358 100755 (executable)
@@ -126,7 +126,7 @@ Check_Stamp() {
                  24)   txt=", WARNING (some files vanished during backup)"; ;;
                  *)    txt=", ERROR"
                esac
-               [ $code -gt 0 ] && echo "$2  - Result code: ${code}${txt}"
+               [ $code -ge 0 ] && echo "$2  - Result code: ${code}${txt}"
        else
                echo "$2  - No timestamp recorded! Backup currently running or aborted?"
        fi