]> arthur.barton.de Git - backup-script.git/commitdiff
backup-audit: Don't skip systems with errors, only print a warning
authorAlexander Barton <alex@barton.de>
Mon, 3 Dec 2018 10:48:28 +0000 (11:48 +0100)
committerAlexander Barton <alex@barton.de>
Mon, 3 Dec 2018 10:48:28 +0000 (11:48 +0100)
bin/backup-audit

index 36c871d4ee1e98dc78c95d30cf9f8ef2b543bae5..6cfcf1637ac1b16d0d61cb72ed6af4df59b5bb03 100755 (executable)
@@ -140,9 +140,8 @@ HandleSystem() {
        # shellcheck source=/dev/null
        source "$latest_d/.stamp"
 
-       if [[ $code -ne 0 && $code -ne 24 ]]; then
-               echo "Last backup generation has errors, skipping system!"
-               echo; return 1
+       if [[ $code -ne 0 ]]; then
+               echo "Warning: Last backup generation had errors, code $code!"
        fi
 
        # Search previous generation without errors