aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2019-11-08 11:57:28 +0800
committertypebrook <typebrook@gmail.com>2019-11-08 11:57:28 +0800
commit6886cbc1c1538ce0326d9d0412bfb0bd914a8907 (patch)
tree8465d72602033fded06ff575483dec6d607a8bc6
parent85f979c49cbcc7166adfebd87b47960b6fe4ede9 (diff)
update
-rw-r--r--utils/osm.utils.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/osm.utils.sh b/utils/osm.utils.sh
index 9e7160a..68f7f54 100644
--- a/utils/osm.utils.sh
+++ b/utils/osm.utils.sh
@@ -12,7 +12,7 @@ OSM_USER_PASSWD=$(cat $HOME/git/settings/tokens/osm)
12# get .osm format data 12# get .osm format data
13osm.get() { 13osm.get() {
14 curl -X GET $OSM_API/$1/$2 &&\ 14 curl -X GET $OSM_API/$1/$2 &&\
15 echo $2 | xsel -ib 15 echo $2 copied | xsel -ib
16} 16}
17# extract an element from .osm format STDIN 17# extract an element from .osm format STDIN
18osm.extract() { 18osm.extract() {
@@ -34,7 +34,7 @@ osm.upload.to() {
34 sed "s/.*/\0 \| osm.changeset.add $1/g" |\ 34 sed "s/.*/\0 \| osm.changeset.add $1/g" |\
35 while read -r command 35 while read -r command
36 do 36 do
37 cat <(echo $command "&") 37 cat <(echo "("$command "&)")
38 #source <(echo $command &) 38 #source <(echo $command &)
39 done 39 done
40} 40}