diff options
| author | Hsieh Chin Fan <typebrook@gmail.com> | 2021-03-19 12:57:34 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <typebrook@gmail.com> | 2021-03-19 12:57:34 +0800 |
| commit | 0143cd1866e2489ed30bd890c812a3073be6cc67 (patch) | |
| tree | 543914d4f67bc3608708de9323c5e69c4f30f857 /tools | |
| parent | fa0e57a7388cd5d153fe0d4c0b0287237a62d66f (diff) | |
update
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/osm/osm.api.changeset.commit | 3 |
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 | |||
| 25 | fi | 25 | fi |
| 26 | 26 | ||
| 27 | create_changeset() { | 27 | create_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 - \ |