]> rtime.felk.cvut.cz Git - can-benchmark.git/commitdiff
Change the cron script (btw. we are now triggered by systemd timers) master
authorMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 15 Sep 2017 22:13:59 +0000 (00:13 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 15 Sep 2017 22:13:59 +0000 (00:13 +0200)
continuous/cron.sh

index 9f8f4a2f01fa7856a0c4cf85cb6dab30cc048aab..6a53ecd9865fa26b98f874a8fa2a70f19c4c201b 100755 (executable)
@@ -3,6 +3,7 @@
 PATH=$PATH:$HOME/bin
 
 set -e
+set -o pipefail
 
 cd $(dirname $0)
 
@@ -16,11 +17,7 @@ mkdir -p logs
 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 )