diff options
-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" |