ansiweather

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

commit fba3cdbefb3e2ae5a512e7ddf43426788f1918ba
parent fc4d7be1cdbab3c94e2cd396824d68936d04f0a9
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date:   Tue, 14 Apr 2015 14:46:29 +0200

Merge pull request #60 from lucc/ws

Remove white space errors.
Diffstat:
MREADME.md | 2+-
Mansiweather | 8++++----
2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/README.md b/README.md @@ -11,7 +11,7 @@ Weather data comes from the `OpenWeatherMap` free weather API. ## Requirements -AnsiWeather requires the following dependencies : +AnsiWeather requires the following dependencies : - A command to fetch HTTP data such as [cURL](http://curl.haxx.se) or [wget](https://www.gnu.org/software/wget/) - [jq](http://stedolan.github.io/jq/) (lightweight and flexible command-line JSON processor) diff --git a/ansiweather b/ansiweather @@ -25,7 +25,7 @@ function get_config { ret="" if [ -f $config_file ] then - ret=$(grep "^$1:" $config_file | awk -F: '{print $2}') + ret=$(grep "^$1:" $config_file | awk -F: '{print $2}') fi if [ "X$ret" = "X" ] @@ -44,10 +44,10 @@ fetch_cmd=$(get_config "fetch_cmd" || echo "curl -s") jqpath="`which jq`" if [ "$jqpath" == "" ] -then +then echo -e "\njq binary is not found, please download it from http://stedolan.github.io/jq/ and put it in your PATH" exit 255 -fi +fi @@ -341,7 +341,7 @@ function get_icon { if [ $forecast != 0 ] then output="$background$text $city forecast $text$delimiter " - + i=0 while [ $i -lt $forecast ] do