ansiweather

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

commit 8fd0046b764472c2d0dd060074c907f70c5c7065
parent 694c961b367991e381830a5d0c3382eec5709097
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date:   Thu,  6 Aug 2015 23:18:29 +0200

Removed another occurrence of double square brackets

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

diff --git a/ansiweather b/ansiweather @@ -189,7 +189,7 @@ if [ $forecast != 0 ] then city=$(echo "$weather" | jq -r '.city.name') flength=$(echo $weather | jq '.list | length') - forecast=$([[ $forecast -gt $flength ]] && echo $flength || echo $forecast) + forecast=$([ $forecast -gt $flength ] && echo $flength || echo $forecast) else city=$(echo "$weather" | jq -r '.name') temperature=$(printf '%.0f' $(echo "$weather" | jq '.main.temp'))