aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/osm/osm.api.changeset.create
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2019-11-20 12:09:53 +0800
committertypebrook <typebrook@gmail.com>2019-11-20 12:09:53 +0800
commitcdaf8dd723fe912a5b559b9e1d515206b2c6e5e4 (patch)
tree8765d0d469a50f5495a6a3e8aef1480270a2bdca /scripts/osm/osm.api.changeset.create
parent751b9255cf86afeee77e4cbb77a538399ef5d35a (diff)
update
Diffstat (limited to 'scripts/osm/osm.api.changeset.create')
-rwxr-xr-xscripts/osm/osm.api.changeset.create11
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
15echo $info |\ 15changeset_id=$(echo $info |\
16curl -u $OSM_USER_PASSWD --upload-file - $OSM_API/changeset/create |\ 16 curl -u $OSM_USER_PASSWD --upload-file - $OSM_API/changeset/create |\
17tee /dev/tty |\ 17 tail -1)
18tail -1 | read changeset_id
19 18
20echo " copied into clipboard" 19echo
21echo "changeset created, check $OSM_SERVER/changeset/$changeset_id" 20echo "changeset created, check $OSM_SERVER/changeset/$changeset_id"
22echo $changeset_id | xsel -ib 21echo "$changeset_id is copied into clipboard"