From: Michal Sojka Date: Wed, 5 Feb 2014 18:04:04 +0000 (+0100) Subject: Fixes of cron script X-Git-Tag: fix-allnoconfig~32 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/can-benchmark.git/commitdiff_plain/3a2436513da2275418a9cf4c6c97903cf8612490 Fixes of cron script --- diff --git a/continuous/cron.sh b/continuous/cron.sh index 0e892d4..14e3d5a 100755 --- a/continuous/cron.sh +++ b/continuous/cron.sh @@ -1,5 +1,7 @@ #!/bin/bash +PATH=$PATH:$HOME/bin + set -e cd $(dirname $0) @@ -7,5 +9,6 @@ cd $(dirname $0) mkdir -p logs NOW=$(date +%F_%R:%S) +LOG=logs/${NOW}.log -make -C steps > logs/${NOW}.log 2>&1 +make -C steps > $LOG 2>&1 || cat $LOG