diff options
-rw-r--r-- | scripts/weekrun | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/scripts/weekrun b/scripts/weekrun index c2d3abb..28cbed2 100644 --- a/scripts/weekrun +++ b/scripts/weekrun @@ -15,17 +15,18 @@ for i in thales-deutschland ibm-boeblingen buerocampus-wangen continental-villin arafetch --db $db --cantine $i ara2influx $db --cantine $i db=$PDFDIR/$i-$NOW.pdf - wget http://gast.aramark.de/$i/menu/pdf/woche_de.php -O $db + wget http://gast.aramark.de/$i/menu/pdf/woche_de.php -O $db || echo "Unable to fetch pdf plan of $i" - # commit changes - pushd $DATADIR - if ! test -e .git;then - echo "initializing git repo for $DATADIR" - git init - git config user.email "arafetch@localhost" - git config user.name "arafetch daemon" - fi - git add -A - git commit -m "update $NOW" - popd done + +# commit changes +pushd $DATADIR +if ! test -e .git;then + echo "initializing git repo for $DATADIR" + git init + git config user.email "arafetch@localhost" + git config user.name "arafetch daemon" +fi +git add -A +git commit -m "update $NOW" +popd |