diff --git a/backup.sh b/backup.sh index 6f68c52..e1b0619 100755 --- a/backup.sh +++ b/backup.sh @@ -314,7 +314,7 @@ array-sum () { # Given two exit codes, print a nonzero one if there is one exit-code () { - if [ "$1" -ne 0 ]; then + if [[ "$1" != "0" ]]; then echo "$1" else if [[ "$2" == "" ]]; then