From a0dacfb02f2bfb56294fbe6f4a5052ba9f3a8665 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Tue, 15 Sep 2015 22:37:03 +0100 Subject: Improve script formatting --- update.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/update.sh b/update.sh index 8fe6cc4..ef98e3e 100755 --- a/update.sh +++ b/update.sh @@ -1,3 +1,8 @@ #!/bin/bash +set -e + rm -f hampshire-latest.osm.pbf -wget http://download.geofabrik.de/europe/great-britain/england/hampshire-latest.osm.pbf && osm2pgsql -s -S osm2pgsql.style -d hampshire hampshire-latest.osm.pbf + +wget http://download.geofabrik.de/europe/great-britain/england/hampshire-latest.osm.pbf + +osm2pgsql -s -S osm2pgsql.style -d hampshire hampshire-latest.osm.pbf -- cgit v1.2.3