From ba6412a5b9f5e5f3233613a28e2d2d953358dfd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mois=C3=A9s=20Carvalho?= Date: Sat, 30 May 2020 11:32:28 -0300 Subject: [PATCH] Fix spacing when temperatures isn't available --- scripts/weather.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/weather.sh b/scripts/weather.sh index cef059b..985af91 100755 --- a/scripts/weather.sh +++ b/scripts/weather.sh @@ -58,7 +58,7 @@ forecast_unicode() display_weather() { if [ $country = 'US' ]; then - echo "$(forecast_unicode)$(get_temp)°" + echo "$(forecast_unicode)$(get_temp)° " else echo '' fi @@ -75,7 +75,7 @@ main() fi # process should be cancelled when session is killed if ping -q -c 1 -W 1 ipinfo.io &>/dev/null; then - echo "$(display_weather) $city, $(get_region_code)" + echo "$(display_weather)$city, $(get_region_code)" else echo "Location Unavailable" fi