From 6886cbc1c1538ce0326d9d0412bfb0bd914a8907 Mon Sep 17 00:00:00 2001 From: typebrook Date: Fri, 8 Nov 2019 11:57:28 +0800 Subject: update --- utils/osm.utils.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils/osm.utils.sh') 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) # get .osm format data osm.get() { curl -X GET $OSM_API/$1/$2 &&\ - echo $2 | xsel -ib + echo $2 copied | xsel -ib } # extract an element from .osm format STDIN osm.extract() { @@ -34,7 +34,7 @@ osm.upload.to() { sed "s/.*/\0 \| osm.changeset.add $1/g" |\ while read -r command do - cat <(echo $command "&") + cat <(echo "("$command "&)") #source <(echo $command &) done } -- cgit v1.2.3-70-g09d2