aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/osm
diff options
context:
space:
mode:
authorHsieh Chin Fan <typebrook@gmail.com>2021-03-19 12:57:34 +0800
committerHsieh Chin Fan <typebrook@gmail.com>2021-03-19 12:57:34 +0800
commit0143cd1866e2489ed30bd890c812a3073be6cc67 (patch)
tree543914d4f67bc3608708de9323c5e69c4f30f857 /tools/osm
parentfa0e57a7388cd5d153fe0d4c0b0287237a62d66f (diff)
update
Diffstat (limited to 'tools/osm')
-rwxr-xr-xtools/osm/osm.api.changeset.commit3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/osm/osm.api.changeset.commit b/tools/osm/osm.api.changeset.commit
index e084198..6b67833 100755
--- a/tools/osm/osm.api.changeset.commit
+++ b/tools/osm/osm.api.changeset.commit
@@ -25,7 +25,8 @@ if [ -z ${OSM_USER_PASSWD} ]; then
25fi 25fi
26 26
27create_changeset() { 27create_changeset() {
28 SOURCE_TAG="${SOURCE:+<tag k=\'source\' v=\'$SOURCE\'/>}" 28 SOURCE_TAG="${SOURCE:+$(printf "<tag k='source' v='%s'/>" $SOURCE)}"
29
29 curl ${OSM_API}/changeset/create \ 30 curl ${OSM_API}/changeset/create \
30 --user ${OSM_USER_PASSWD} \ 31 --user ${OSM_USER_PASSWD} \
31 --upload-file - \ 32 --upload-file - \