X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/86d90bc46005c00f2367ad759804f528adc4c6a5..dba5b2f86e3b91eade86a851932004a56b34134e:/tests/scenes/bin/make_scenes.sh diff --git a/tests/scenes/bin/make_scenes.sh b/tests/scenes/bin/make_scenes.sh index 4ad31f31..25340b50 100755 --- a/tests/scenes/bin/make_scenes.sh +++ b/tests/scenes/bin/make_scenes.sh @@ -1,20 +1,20 @@ -#/bin/bash -e +#!/bin/bash -e # # Regenerates wkts for scenarios. # datadir="$( cd "$( dirname "$0" )" && cd ../data && pwd )" -if [! -d "$datadir" ]; then +if [ ! -d "$datadir" ]; then echo "Cannot find data dir."; exit -1; fi echo "Using datadir $datadir" -pushd $datadir +cd $datadir # remove old wkts -rm $datadir/*.wkt +rm -f $datadir/*.wkt # create wkts from SQL scripts for fl in *.sql; do @@ -27,5 +27,3 @@ for fl in *.osm; do echo "Processing $fl.." ../bin/osm2wkt $fl done - -popd