ansiweather

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

commit fddbb4f72ae1691105b8e2978791fe61e544f915
parent 22d4bd8c11c124b0b874735ffb77053c9a81abea
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date:   Wed,  5 Aug 2015 20:10:12 +0200

Removing unnecessary quotes and parentheses

Diffstat:
Mansiweather | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/ansiweather b/ansiweather @@ -331,16 +331,16 @@ then i=0 while [ $i -lt $forecast ] do - day=("$(echo $weather | jq ".list[$i]")") - date=("$(epoch_to_date $(echo $day | jq -r '.dt'))") - low=("$(printf "%0.0f" $(echo $day | jq -r '.temp.min'))") - high=("$(printf "%0.0f" $(echo $day | jq -r '.temp.max'))") + day=$(echo $weather | jq ".list[$i]") + date=$(epoch_to_date $(echo $day | jq -r '.dt')) + low=$(printf "%0.0f" $(echo $day | jq -r '.temp.min')) + high=$(printf "%0.0f" $(echo $day | jq -r '.temp.max')) icon="" if [ $symbols = true ] then - sky=("$(echo $day | jq -r '.weather[0].main')") - icon="$(get_icon $sky)" + sky=$(echo $day | jq -r '.weather[0].main') + icon=$(get_icon $sky) fi output="$output$text$date: $data$high$text/$data$low $scale $icon"