ansiweather

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

commit 6f5dd2573972617b29217dd79652543532692310
parent bac665e24ee485592fc199ea05f897dcdc58e720
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date:   Thu,  6 Aug 2015 20:40:23 +0200

Do not use double square brackets anymore as they are not standard

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

diff --git a/ansiweather b/ansiweather @@ -154,7 +154,7 @@ thunderstorm=$(get_config "thunderstorm" || echo "\xe2\x9a\xa1") ###[ Fetch Weather data ]###################################################### -api_cmd=$([[ $forecast != 0 ]] && echo "forecast/daily" || echo "weather") +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") if [ -z "$weather" ]