ansiweather

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

commit e8ce9e72eae37d772793903ec6de157e26a45deb
parent 27f498b9b61511f510e34c6aa050c21ab98d3ddc
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date:   Thu, 10 Sep 2015 22:12:49 +0200

More linting

Diffstat:
Mansiweather | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ansiweather b/ansiweather @@ -244,11 +244,11 @@ epoch_to_date() { echo "$ret" } -if [ $forecast != 0 ] +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')")