diff options
author | makefu <github@syntax-fehler.de> | 2018-03-28 09:43:40 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2018-03-28 09:59:52 +0200 |
commit | a766502f63b006aea5f2188116a6e29a131d5cc8 (patch) | |
tree | 5c213c55c4b702fc81829ad571ac76c6e5d5ff46 /scripts/weekrun | |
parent | 21899089a86fb9ca2bfac42622ac0c3777059c0b (diff) |
add check for git
Diffstat (limited to 'scripts/weekrun')
-rw-r--r-- | scripts/weekrun | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/weekrun b/scripts/weekrun index 316f3ce..31a5405 100644 --- a/scripts/weekrun +++ b/scripts/weekrun @@ -16,6 +16,14 @@ for i in thales-deutschland ibm-boeblingen buerocampus-wangen continental-villin ara2influx $db --cantine $i db=$PDFDIR/$i-$NOW.pdf wget http://gast.aramark.de/$i/menu/pdf/woche_de.php -O $db - git add -A $DATADIR + + # commit changes + pushd $DATADIR + if ! test -e .git;then + echo "initializing git repo for $DATADIR" + git init + fi + git add -A git commit -m "update $NOW" + popd done |