From 762d7471d2c6c40d399af54a17b8f220a650d847 Mon Sep 17 00:00:00 2001 From: makefu Date: Wed, 28 Mar 2018 10:34:20 +0200 Subject: udpate weekrun script --- scripts/weekrun | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'scripts') 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 -- cgit v1.2.3