ansiweather

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

commit 587a5b018f1a943dc4a7f466b0f470b5c9fcc31b
parent aafd4801e51e909d0889bdf39c8d5922a71ba7fe
Author: Andrei Neculau <andrei.neculau@gmail.com>
Date:   Mon,  7 Apr 2014 21:21:23 +0200

fix forecast flag

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

diff --git a/ansiweather b/ansiweather @@ -90,14 +90,15 @@ forecast=$(get_config "forecast" || echo 0) daylight=$(get_config "daylight" || echo false) # Or get config options from command line flags -while getopts :l:u:s:f:d: option +while getopts :l:u:s:f:Fd: option do case "${option}" in l) location=${OPTARG};; u) units=${OPTARG};; s) symbols=${OPTARG};; - f) forecast=${OPTARG-5};; + f) forecast=${OPTARG};; + F) forecast="5";; d) daylight=${OPTARG};; esac done