From: Michal Sojka Date: Wed, 28 May 2014 05:54:04 +0000 (+0200) Subject: Propagate make failure to the caller (cron) X-Git-Tag: pc-sw-update~26 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/can-benchmark.git/commitdiff_plain/3a74f1734698b98d56c4cd36b817f7d9e5074ea7 Propagate make failure to the caller (cron) --- diff --git a/continuous/cron.sh b/continuous/cron.sh index b61a8f3..97243b4 100755 --- a/continuous/cron.sh +++ b/continuous/cron.sh @@ -11,7 +11,10 @@ mkdir -p logs NOW=$(date +%F_%R:%S) LOG=${NOW}.log -make -C steps > logs/$LOG 2>&1 || cat logs/$LOG +if ! make -C steps > logs/$LOG 2>&1; then + cat logs/$LOG + exit 1 +fi make -C www --silent publish