diff options
Diffstat (limited to 'tools/osm/osm.api.changeset.update')
-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>" | \ |