fahrplanimport: maybe a little bit more save when not running in the same folder

This commit is contained in:
dodo 2011-09-23 14:01:02 +02:00
parent ae6ad586f6
commit 7549bd8939

View File

@ -2,13 +2,15 @@
# c3d2-web $ ./scripts/fahrplan-import.sh # c3d2-web $ ./scripts/fahrplan-import.sh
cd ./content/static/datenspuren || exit 1
mkdir .tmp mkdir .tmp
cd .tmp cd .tmp
curl https://cccv.pentabarf.org/DS2011.tar.gz | tar xz curl https://cccv.pentabarf.org/DS2011.tar.gz | tar xz
rm DS2011/style.css rm DS2011/style.css
cp -r DS2011/* ../content/static/datenspuren/fahrplan/ cp -r DS2011/* ../fahrplan/
cd .. cd ..
rm -r .tmp rm -r .tmp
git add content/static/datenspuren/fahrplan git add ./fahrplan
git commit -m 'fahrplan import [auto]' git commit -m 'fahrplan import [auto]'