aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/backup6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/backup b/bin/backup
index 01cca40..018e080 100755
--- a/bin/backup
+++ b/bin/backup
@@ -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"