From d8d4ffc580b8c4852f8436188168b2f040ab1969 Mon Sep 17 00:00:00 2001 From: Dane Williams Date: Sun, 15 Mar 2020 12:41:55 -0700 Subject: [PATCH] fixed weather icon formatting for no icon --- weather.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/weather.sh b/weather.sh index 65f8fdd..1903cd0 100755 --- a/weather.sh +++ b/weather.sh @@ -32,15 +32,15 @@ forecast_unicode() forecast=$(weather_information | head -n 1) if [[ $forecast =~ 'Snow' ]]; then - echo '❄' + echo '❄ ' elif [[ (($forecast =~ 'Rain') || ($forecast =~ 'Shower')) ]]; then - echo '☂' + echo '☂ ' elif [[ (($forecast =~ 'Overcast') || ($forecast =~ 'Cloud')) ]]; then - echo '☁' + echo '☁ ' elif [[ $forecast = 'NA' ]]; then echo '' else - echo '☀' + echo '☀ ' fi @@ -49,7 +49,7 @@ forecast_unicode() display_weather() { if [ $country = 'US' ]; then - echo " $(forecast_unicode) $(get_temp)°F" + echo " $(forecast_unicode)$(get_temp)°F" else echo '' fi