From 0608603e07fbd446315eddcefac35966ed9ac693 Mon Sep 17 00:00:00 2001 From: typebrook Date: Thu, 14 Nov 2019 17:14:58 +0800 Subject: update --- utils/osm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'utils/osm') diff --git a/utils/osm b/utils/osm index 5fd5798..a911f77 100644 --- a/utils/osm +++ b/utils/osm @@ -213,7 +213,9 @@ osm.api.changeset.add() { } osm.api.changeset.upload() { cat $2 |\ - sed -r "/<(node|way|relation)/ s/>/ changeset=\"$1\">/" + sed -r "/<(node|way|relation)/ s/>/ changeset=\"$1\">/ + /<(node|way|relation)/,/<\/(node|way|relation)/ + " #curl -X POST -u $OSM_USER_PASSWD -T - $OSM_API/changeset/$id/upload } # update changeset with a new comment -- cgit v1.2.3-70-g09d2