diff options
| author | typebrook <typebrook@gmail.com> | 2019-11-20 12:09:53 +0800 |
|---|---|---|
| committer | typebrook <typebrook@gmail.com> | 2019-11-20 12:09:53 +0800 |
| commit | cdaf8dd723fe912a5b559b9e1d515206b2c6e5e4 (patch) | |
| tree | 8765d0d469a50f5495a6a3e8aef1480270a2bdca /scripts | |
| parent | 751b9255cf86afeee77e4cbb77a538399ef5d35a (diff) | |
update
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/osm/osm.api.changeset.create | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/scripts/osm/osm.api.changeset.create b/scripts/osm/osm.api.changeset.create index 762fbdb..ed2601a 100755 --- a/scripts/osm/osm.api.changeset.create +++ b/scripts/osm/osm.api.changeset.create | |||
| @@ -12,11 +12,10 @@ info="<osm> | |||
| 12 | </osm> | 12 | </osm> |
| 13 | " | 13 | " |
| 14 | 14 | ||
| 15 | echo $info |\ | 15 | changeset_id=$(echo $info |\ |
| 16 | curl -u $OSM_USER_PASSWD --upload-file - $OSM_API/changeset/create |\ | 16 | curl -u $OSM_USER_PASSWD --upload-file - $OSM_API/changeset/create |\ |
| 17 | tee /dev/tty |\ | 17 | tail -1) |
| 18 | tail -1 | read changeset_id | ||
| 19 | 18 | ||
| 20 | echo " copied into clipboard" | 19 | echo |
| 21 | echo "changeset created, check $OSM_SERVER/changeset/$changeset_id" | 20 | echo "changeset created, check $OSM_SERVER/changeset/$changeset_id" |
| 22 | echo $changeset_id | xsel -ib | 21 | echo "$changeset_id is copied into clipboard" |