diff options
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/osm/osm.api.changeset.commit | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/osm/osm.api.changeset.commit b/tools/osm/osm.api.changeset.commit index 4f3f926..5182e3b 100755 --- a/tools/osm/osm.api.changeset.commit +++ b/tools/osm/osm.api.changeset.commit | |||
| @@ -35,9 +35,9 @@ echo "changeset created, check ${OSM_SERVER}/changeset/${changeset_id}" >/dev/tt | |||
| 35 | echo ${changeset_id} | 35 | echo ${changeset_id} |
| 36 | 36 | ||
| 37 | # Upload OSC file to Changeset | 37 | # Upload OSC file to Changeset |
| 38 | sed -r "/<(node|way|relation)/ s/>/ changeset=\"${changeset_id}\">/" <$1 |\ | 38 | sed -Ee "/<(node|way|relation)/ s/>/ changeset=\"${changeset_id}\">/" $1 |\ |
| 39 | tee /dev/tty | \ | 39 | tee /dev/tty | \ |
| 40 | curl -X POST -u ${OSM_USER_PASSWD} -i -T - $OSM_API/changeset/${changeset_id}/upload | 40 | curl -X POST --user ${OSM_USER_PASSWD} -i --upload-file - $OSM_API/changeset/${changeset_id}/upload |
| 41 | 41 | ||
| 42 | # Close Changeset | 42 | # Close Changeset |
| 43 | curl -X PUT -u ${OSM_USER_PASSWD} -i ${OSM_API}/changeset/${changeset_id}/close | 43 | curl -X PUT --user ${OSM_USER_PASSWD} -i ${OSM_API}/changeset/${changeset_id}/close |