From 4261c28a3c8313c26d14b91cc64b29c791ea77f8 Mon Sep 17 00:00:00 2001 From: typebrook Date: Tue, 19 Nov 2019 23:20:47 +0800 Subject: update --- scripts/osm/osm.pbf.update | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/osm') diff --git a/scripts/osm/osm.pbf.update b/scripts/osm/osm.pbf.update index 599076f..102d158 100755 --- a/scripts/osm/osm.pbf.update +++ b/scripts/osm/osm.pbf.update @@ -1,6 +1,5 @@ #!/bin/sh -PBF_FILE=$1 GEOFABRICK_SERVER=http://download.geofabrik.de/asia/taiwan-updates # get next sequence number and store it into NEW_SEQ @@ -27,6 +26,7 @@ do --overwrite \ --output $NEW_SEQ.osm.pbf - PBF_FILE=$NEW_SEQ.osm.pbf + mv $1 $((NEW_SEQ-1)).osm.pbf + mv $NEW_SEQ.osm.pbf $1 ((NEW_SEQ++)) done -- cgit v1.2.3-70-g09d2