From cdaf8dd723fe912a5b559b9e1d515206b2c6e5e4 Mon Sep 17 00:00:00 2001 From: typebrook Date: Wed, 20 Nov 2019 12:09:53 +0800 Subject: update --- scripts/osm/osm.api.changeset.create | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'scripts/osm/osm.api.changeset.create') 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=" " -echo $info |\ -curl -u $OSM_USER_PASSWD --upload-file - $OSM_API/changeset/create |\ -tee /dev/tty |\ -tail -1 | read changeset_id +changeset_id=$(echo $info |\ + curl -u $OSM_USER_PASSWD --upload-file - $OSM_API/changeset/create |\ + tail -1) -echo " copied into clipboard" +echo echo "changeset created, check $OSM_SERVER/changeset/$changeset_id" -echo $changeset_id | xsel -ib +echo "$changeset_id is copied into clipboard" -- cgit v1.2.3-70-g09d2