summaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/osm/osm.pbf.update4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/osm/osm.pbf.update b/scripts/osm/osm.pbf.update
index c7d0b2b..b0168ea 100755
--- a/scripts/osm/osm.pbf.update
+++ b/scripts/osm/osm.pbf.update
@@ -14,6 +14,7 @@ sed 's/$/+1/' | bc)
14while 14while
15 SEQ_PATH=$(echo $NEW_SEQ | sed -r 's/(.{1})(.{3})/00\1\/\2/') 15 SEQ_PATH=$(echo $NEW_SEQ | sed -r 's/(.{1})(.{3})/00\1\/\2/')
16 STATE_URL=$GEOFABRICK_SERVER/000/$SEQ_PATH.state.txt 16 STATE_URL=$GEOFABRICK_SERVER/000/$SEQ_PATH.state.txt
17 echo check state file exists:
17 echo $STATE_URL 18 echo $STATE_URL
18 [ $(curl -o /dev/null --silent -Iw "%{http_code}" $STATE_URL) != "404" ] 19 [ $(curl -o /dev/null --silent -Iw "%{http_code}" $STATE_URL) != "404" ]
19do 20do
@@ -30,3 +31,6 @@ do
30 mv $NEW_SEQ.osm.pbf $PBF_FILE 31 mv $NEW_SEQ.osm.pbf $PBF_FILE
31 (( NEW_SEQ++ )) 32 (( NEW_SEQ++ ))
32done 33done
34
35echo
36echo File sequence number is $((NEW_SEQ-1)), already the latest one on Geofrbrik