Skip to content
Snippets Groups Projects
Commit fccffe49 authored by Michal Sojka's avatar Michal Sojka
Browse files

Push logs to remote repo (for backing up)

parent ae829d30
No related branches found
No related tags found
No related merge requests found
......@@ -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 )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment