From ca5bcba85ef51974f7d2847b2912f7f69bdad730 Mon Sep 17 00:00:00 2001 From: Al Date: Thu, 22 Sep 2016 00:52:00 -0400 Subject: [PATCH] [osm] set -e so script errors out if anything fails and add --quiet to wget for I/O redirection purposes --- scripts/geodata/osm/fetch_osm_address_data.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/geodata/osm/fetch_osm_address_data.sh b/scripts/geodata/osm/fetch_osm_address_data.sh index d26e9c2b..8b783fe8 100755 --- a/scripts/geodata/osm/fetch_osm_address_data.sh +++ b/scripts/geodata/osm/fetch_osm_address_data.sh @@ -17,6 +17,8 @@ else OUT_DIR=`pwd` fi +set -e + # Check for osmfilter and osmconvert if ! type -P osmfilter osmconvert > /dev/null; then cat << EOF @@ -43,8 +45,8 @@ echo "Started OSM download: `date`" PLANET_PBF="planet-latest.osm.pbf" JAPAN_PBF="japan-latest.osm.pbf" -wget http://ftp5.gwdg.de/pub/misc/openstreetmap/planet.openstreetmap.org/pbf/planet-latest.osm.pbf -O $OUT_DIR/$PLANET_PBF & -wget http://download.geofabrik.de/asia/japan-latest.osm.pbf -O $OUT_DIR/$JAPAN_PBF & +wget --quiet http://ftp5.gwdg.de/pub/misc/openstreetmap/planet.openstreetmap.org/pbf/planet-latest.osm.pbf -O $OUT_DIR/$PLANET_PBF & +wget --quiet http://download.geofabrik.de/asia/japan-latest.osm.pbf -O $OUT_DIR/$JAPAN_PBF & wait