X-Git-Url: http://git.annexia.org/?p=whenjobs.git;a=blobdiff_plain;f=daemon%2Fdaemon.ml;h=6ccfcce983606075b6457c7c433763fdf4ab8da6;hp=6f5edfbaf34367d40f3d4d57e7c1184e86f2fa3a;hb=0bfe72d06b55b0db076c900c6c2173b59c8b75f3;hpb=e74ab6c5b107e3daeb4fae3f59013856be060bad diff --git a/daemon/daemon.ml b/daemon/daemon.ml index 6f5edfb..6ccfcce 100644 --- a/daemon/daemon.ml +++ b/daemon/daemon.ml @@ -353,6 +353,7 @@ and run_job job = (* Create a temporary file containing the shell script fragment. *) let script = dir // "script" in let chan = open_out script in + fprintf chan "set -e\n"; (* So that jobs exit on error. *) output_string chan job.job_script.sh_script; close_out chan; chmod script 0o700;