diff --git a/geekWeather2.sh b/geekWeather2.sh index e798492..a63f633 100755 --- a/geekWeather2.sh +++ b/geekWeather2.sh @@ -26,9 +26,27 @@ fi cd `dirname $0` +# rawurl code from http://stackoverflow.com/questions/296536/urlencode-from-a-bash-script +rawurlencode() { + local string="${1}" + local strlen=${#string} + local encoded="" + + for (( pos=0 ; pos