diff options
| author | Hsieh Chin Fan <typebrook@gmail.com> | 2021-03-18 22:20:16 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <typebrook@gmail.com> | 2021-03-18 22:20:16 +0800 |
| commit | 2f95852123a196f04e4313bda4a731a316d43428 (patch) | |
| tree | fee24e851d040086630c8b860c5d20b35c698fb3 | |
| parent | 2139e672e71393265781483ca200ef0729182614 (diff) | |
update
| -rwxr-xr-x | tools/osm/osm.api.changeset.commit | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/osm/osm.api.changeset.commit b/tools/osm/osm.api.changeset.commit index 3c6188a..8e5026f 100755 --- a/tools/osm/osm.api.changeset.commit +++ b/tools/osm/osm.api.changeset.commit | |||
| @@ -25,6 +25,7 @@ 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 | curl ${OSM_API}/changeset/create \ | 29 | curl ${OSM_API}/changeset/create \ |
| 29 | --user ${OSM_USER_PASSWD} \ | 30 | --user ${OSM_USER_PASSWD} \ |
| 30 | --upload-file - \ | 31 | --upload-file - \ |
| @@ -32,6 +33,7 @@ create_changeset() { | |||
| 32 | <<EOF | tail -1 | 33 | <<EOF | tail -1 |
| 33 | <osm> | 34 | <osm> |
| 34 | <changeset> | 35 | <changeset> |
| 36 | ${SOURCE_TAG} | ||
| 35 | <tag k='comment' v='${comment}'/> | 37 | <tag k='comment' v='${comment}'/> |
| 36 | <tag k='created_by' v='bash script'/> | 38 | <tag k='created_by' v='bash script'/> |
| 37 | <tag k='bot' v='yes'/> | 39 | <tag k='bot' v='yes'/> |