From: Alexander Barton Date: Tue, 24 Nov 2015 15:11:10 +0000 (+0100) Subject: Fix backup-status not showing result code for successful backups X-Git-Url: https://arthur.barton.de/gitweb/?p=backup-script.git;a=commitdiff_plain;h=80655038fee8d0c5a994e358865344b28398ac92 Fix backup-status not showing result code for successful backups This bug has been introduced by commit e9d32c68 ("backup-status: Show more information from stamp file"). Oops! --- diff --git a/bin/backup-status b/bin/backup-status index eb423db..dfdf15e 100755 --- a/bin/backup-status +++ b/bin/backup-status @@ -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