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() display_weather()
{ {
if [ $country = 'US' ]; then if [ $country = 'US' ]; then
echo "$(forecast_unicode)$(get_temp)°" echo "$(forecast_unicode)$(get_temp)° "
else else
echo '' echo ''
fi fi
@ -75,7 +75,7 @@ main()
fi fi
# process should be cancelled when session is killed # process should be cancelled when session is killed
if ping -q -c 1 -W 1 ipinfo.io &>/dev/null; then 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 else
echo "Location Unavailable" echo "Location Unavailable"
fi fi