]> git.openstreetmap.org Git - nominatim.git/blobdiff - tests/scenes/bin/make_scenes.sh
Merge remote-tracking branch 'upstream/master' into cmake-port
[nominatim.git] / tests / scenes / bin / make_scenes.sh
index 4ad31f31fcbae466c0b1253239487f08e39f5d20..25340b507135027f82afb4fd06daf1ea4391edfe 100755 (executable)
@@ -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