summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2018-03-28 09:43:40 +0200
committermakefu <github@syntax-fehler.de>2018-03-28 09:59:52 +0200
commita766502f63b006aea5f2188116a6e29a131d5cc8 (patch)
tree5c213c55c4b702fc81829ad571ac76c6e5d5ff46
parent21899089a86fb9ca2bfac42622ac0c3777059c0b (diff)
add check for git
-rw-r--r--scripts/weekrun10
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