Propagate make failure to the caller (cron)
authorMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 28 May 2014 05:54:04 +0000 (07:54 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 28 May 2014 05:54:04 +0000 (07:54 +0200)
continuous/cron.sh

index b61a8f3..97243b4 100755 (executable)
@@ -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