ansiweather

Weather in terminal, with ANSI colors and Unicode symbols
Log | Files | Refs | README | LICENSE

commit 2c06e64d4f436743f5a424aa5e8f3441083fcf2b
parent a00bd06c9cfe110382b429cf913616ca65524853
Author: Yu-Jie Lin <livibetter@gmail.com>
Date:   Tue, 24 Dec 2013 21:01:53 +0800

fix incorrectly escaping ampersand

The bug is introduced in commit 175e04a862429903c17e5653e9fe1eda694354db, which quoted the URI. There is no need for escaping ampersand in quoted string, which only produces unwanted slash.

Diffstat:
Mansiweather | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ansiweather b/ansiweather @@ -138,7 +138,7 @@ thunderstorm=$(get_config "thunderstorm" || echo "\xe2\x9a\xa1") fetch_cmd=$(get_config "fetch_cmd" || echo "curl -s") api_cmd=$([[ $forecast != 0 ]] && echo "forecast/daily" || echo "weather") -weather=$($fetch_cmd "http://api.openweathermap.org/data/2.5/$api_cmd?q=$location\&units=$units") +weather=$($fetch_cmd "http://api.openweathermap.org/data/2.5/$api_cmd?q=$location&units=$units") if [ -z "$weather" ] then