summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAssaf Gordon <assafgordon@gmail.com>2016-10-27 18:23:35 (GMT)
committerAssaf Gordon <assafgordon@gmail.com>2016-10-27 18:23:35 (GMT)
commit53dffaa2de771d96785cb10c65d11ddd996e707a (patch)
tree3a8d8ba2ba2deb1c8c6938b5545e7f9117158253
parent6c218bd2f2508935b9327c1504ca6cb278ebb432 (diff)
downloadbin_scripts-53dffaa2de771d96785cb10c65d11ddd996e707a.zip
bin_scripts-53dffaa2de771d96785cb10c65d11ddd996e707a.tar.gz
bin_scripts-53dffaa2de771d96785cb10c65d11ddd996e707a.tar.bz2
run-with-log: propagate exit code from monitored program
If the monitored program failed, exit with same exit code value.
-rwxr-xr-xscripts/run-with-log.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/run-with-log.sh b/scripts/run-with-log.sh
index 3720106..2dd05c0 100755
--- a/scripts/run-with-log.sh
+++ b/scripts/run-with-log.sh
@@ -282,4 +282,5 @@ if test -n "$send_email" ; then
|| die_with_log "fatal error: failed to send email"
fi
-exit 0
+# Propagate exit code from monitored program
+exit $rc