diff options
Diffstat (limited to 'tools/osm/osm.api.changeset.commit')
-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 - \ |