From 6fae25b305d714b3ab7608fa003f1af9bf024545 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Tue, 14 Feb 2023 13:33:23 +0800 Subject: Rename tools into bin --- bin/osm/osm.api.changeset.update | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 bin/osm/osm.api.changeset.update (limited to 'bin/osm/osm.api.changeset.update') diff --git a/bin/osm/osm.api.changeset.update b/bin/osm/osm.api.changeset.update new file mode 100755 index 0000000..7267449 --- /dev/null +++ b/bin/osm/osm.api.changeset.update @@ -0,0 +1,9 @@ +#!/bin/sh + +ID=${1:-$(cat /tmp/changeset 2>/dev/null)} +[ -z $ID ] && echo Please specify Changeset ID && exit 1 + +read -e -p 'Type comment: ' -r comment " | \ +curl -X PUT -u $OSM_USER_PASSWD -i -T - $OSM_API/changeset/$1 -- cgit v1.2.3-70-g09d2