summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <cb15g11@soton.ac.uk>2015-09-15 22:37:03 +0100
committerChristopher Baines <cb15g11@soton.ac.uk>2015-09-15 22:37:03 +0100
commita0dacfb02f2bfb56294fbe6f4a5052ba9f3a8665 (patch)
tree4cffaab34162de94765df2a30123a14b2e640101
parentc10d870bd91fa2564e9079a040c20750505045eb (diff)
downloadleaflet-soton-a0dacfb02f2bfb56294fbe6f4a5052ba9f3a8665.tar
leaflet-soton-a0dacfb02f2bfb56294fbe6f4a5052ba9f3a8665.tar.gz
Improve script formatting
-rwxr-xr-xupdate.sh7
1 files changed, 6 insertions, 1 deletions
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