From 68764b514bcff0222544c6431741231f27f9dc6f Mon Sep 17 00:00:00 2001 From: Dane Williams Date: Sun, 15 Mar 2020 12:21:58 -0700 Subject: [PATCH] no icon where forecast is unavailable --- weather.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/weather.sh b/weather.sh index 626bdd0..756c952 100755 --- a/weather.sh +++ b/weather.sh @@ -39,6 +39,8 @@ forecast_unicode() echo '☂' elif [[ (($forecast =~ 'Overcast') || ($forecast =~ 'Cloud')) ]]; then echo '☁' + elif [[ $forecast = 'NA' ]]; then + echo '' else echo '☀' fi