]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - continuous/cron.sh
Change the cron script (btw. we are now triggered by systemd timers)
[can-benchmark.git] / continuous / cron.sh
index 9f8f4a2f01fa7856a0c4cf85cb6dab30cc048aab..6a53ecd9865fa26b98f874a8fa2a70f19c4c201b 100755 (executable)
@@ -3,6 +3,7 @@
 PATH=$PATH:$HOME/bin
 
 set -e
 PATH=$PATH:$HOME/bin
 
 set -e
+set -o pipefail
 
 cd $(dirname $0)
 
 
 cd $(dirname $0)
 
@@ -16,11 +17,7 @@ mkdir -p logs
 NOW=$(date +%F_%R:%S)
 LOG=${NOW}.log
 
 NOW=$(date +%F_%R:%S)
 LOG=${NOW}.log
 
-if ! make -C steps > logs/$LOG 2>&1; then
-       cat logs/$LOG
-       exit 1
-fi
-
+make -C steps 1>&1 | tee logs/$LOG
 make -C www --silent publish
 
 ( cd logs && git add $LOG && git commit --quiet -m 'Automatic commit' && git push --quiet )
 make -C www --silent publish
 
 ( cd logs && git add $LOG && git commit --quiet -m 'Automatic commit' && git push --quiet )