From: Michal Sojka Date: Thu, 27 Feb 2014 14:09:23 +0000 (+0100) Subject: Push logs to remote repo (for backing up) X-Git-Tag: fix-allnoconfig~9 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/can-benchmark.git/commitdiff_plain/fccffe4987bd82fe49fff2de88e6a0cad6d2f29a Push logs to remote repo (for backing up) --- diff --git a/continuous/cron.sh b/continuous/cron.sh index ef5a309..b61a8f3 100755 --- a/continuous/cron.sh +++ b/continuous/cron.sh @@ -9,8 +9,10 @@ cd $(dirname $0) mkdir -p logs NOW=$(date +%F_%R:%S) -LOG=logs/${NOW}.log +LOG=${NOW}.log -make -C steps > $LOG 2>&1 || cat $LOG +make -C steps > logs/$LOG 2>&1 || cat logs/$LOG make -C www --silent publish + +( cd logs && git add $LOG && git commit --quiet -m 'Automatic commit' && git push --quiet )