commit | 5191a5756906acd551af7e21a299698092bcb46f | [log] [tgz] |
---|---|---|
author | vmikes <vlastimil.mikes@tcpcloud.eu> | Thu Apr 07 10:57:00 2016 +0200 |
committer | vmikes <vlastimil.mikes@tcpcloud.eu> | Thu Apr 07 10:57:35 2016 +0200 |
tree | 90ad1b6e853954045be04c56ef8cd8c59e342dd6 | |
parent | c67eb3ab059bf966522dc3baf4f33c70fedd7666 [diff] |
ok exit fix
diff --git a/backupninja/files/duplicity_salt.sh b/backupninja/files/duplicity_salt.sh index 3b28fc1..4262a6c 100644 --- a/backupninja/files/duplicity_salt.sh +++ b/backupninja/files/duplicity_salt.sh
@@ -61,7 +61,7 @@ if [ $[TODATE-$TOL] -gt $LAST ]; then exit_critical "Last backup $[TODATE-$LAST] hours ago." else - exit_ok $EXITVAL + exit_ok "Last backup: $LAST" fi } @@ -71,8 +71,8 @@ } exit_ok() { - echo "OK: $1" - exit $1 + echo "OK: $*" + exit 0 }