aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorHsieh Chin Fan <typebrook@gmail.com>2021-02-02 18:01:58 +0800
committerHsieh Chin Fan <typebrook@gmail.com>2021-02-02 18:01:58 +0800
commit106d497be9ce6376c6c2849d75aaed13681980af (patch)
treeca609a051bfcae9ae5e19d436fb2d28c8b2acad5 /tools
parent85503f4612f253a00d03b91fd423e581e17e199f (diff)
update
Diffstat (limited to 'tools')
-rwxr-xr-xtools/osm/osm.api.changeset.update3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/osm/osm.api.changeset.update b/tools/osm/osm.api.changeset.update
index da4b831..7267449 100755
--- a/tools/osm/osm.api.changeset.update
+++ b/tools/osm/osm.api.changeset.update
@@ -1,5 +1,8 @@
1#!/bin/sh 1#!/bin/sh
2 2
3ID=${1:-$(cat /tmp/changeset 2>/dev/null)}
4[ -z $ID ] && echo Please specify Changeset ID && exit 1
5
3read -e -p 'Type comment: ' -r comment </dev/tty 6read -e -p 'Type comment: ' -r comment </dev/tty
4 7
5echo "<osm><changeset><tag k=\"comment\" v=\"$comment\"/></changeset></osm>" | \ 8echo "<osm><changeset><tag k=\"comment\" v=\"$comment\"/></changeset></osm>" | \