Fix spacing when temperatures isn't available

This commit is contained in:
Moisés Carvalho 2020-05-30 11:32:28 -03:00
parent efe6ff2220
commit ba6412a5b9

View file

@ -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