diff options
-rwxr-xr-x | bin/backup | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -111,8 +111,10 @@ run() { ~/ STATUS=$? - if [ "$STATUS" = 0 ] || [ "$STATUS" = 1 ]; then - echo 'WARNING, but no ERROR.' >&2 + if [ "$STATUS" = 0 ]; then + return 0 + elif [ "$STATUS" = 1 ]; then + printf 'WARNING, but no ERROR.\n' >&2 return 0 else return "$STATUS" |