From 7549bd89393ad86d7f49211a713a71524fc1e51b Mon Sep 17 00:00:00 2001 From: dodo Date: Fri, 23 Sep 2011 14:01:02 +0200 Subject: [PATCH] fahrplanimport: maybe a little bit more save when not running in the same folder --- scripts/fahrplan-import.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/fahrplan-import.sh b/scripts/fahrplan-import.sh index 7ef17598b..46696ab78 100755 --- a/scripts/fahrplan-import.sh +++ b/scripts/fahrplan-import.sh @@ -2,13 +2,15 @@ # c3d2-web $ ./scripts/fahrplan-import.sh +cd ./content/static/datenspuren || exit 1 + mkdir .tmp cd .tmp curl https://cccv.pentabarf.org/DS2011.tar.gz | tar xz rm DS2011/style.css -cp -r DS2011/* ../content/static/datenspuren/fahrplan/ +cp -r DS2011/* ../fahrplan/ cd .. rm -r .tmp -git add content/static/datenspuren/fahrplan +git add ./fahrplan git commit -m 'fahrplan import [auto]'