diff options
author | Hsieh Chin Fan <typebrook@gmail.com> | 2021-02-02 18:01:58 +0800 |
---|---|---|
committer | Hsieh Chin Fan <typebrook@gmail.com> | 2021-02-02 18:01:58 +0800 |
commit | 106d497be9ce6376c6c2849d75aaed13681980af (patch) | |
tree | ca609a051bfcae9ae5e19d436fb2d28c8b2acad5 /tools | |
parent | 85503f4612f253a00d03b91fd423e581e17e199f (diff) |
update
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/osm/osm.api.changeset.update | 3 |
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 | ||
3 | ID=${1:-$(cat /tmp/changeset 2>/dev/null)} | ||
4 | [ -z $ID ] && echo Please specify Changeset ID && exit 1 | ||
5 | |||
3 | read -e -p 'Type comment: ' -r comment </dev/tty | 6 | read -e -p 'Type comment: ' -r comment </dev/tty |
4 | 7 | ||
5 | echo "<osm><changeset><tag k=\"comment\" v=\"$comment\"/></changeset></osm>" | \ | 8 | echo "<osm><changeset><tag k=\"comment\" v=\"$comment\"/></changeset></osm>" | \ |