Fix spacing when temperatures isn't available
This commit is contained in:
parent
efe6ff2220
commit
ba6412a5b9
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue