Remove the extra space at the beginning of the result of curl command

This commit is contained in:
yzenati 2020-10-16 13:32:28 +02:00
parent 06f257d482
commit 4020ae1d86

View file

@ -18,7 +18,7 @@ fetch_weather_information()
{ {
display_weather=$1 display_weather=$1
# it gets the weather condition textual name (%C), and the temperature (%t) # it gets the weather condition textual name (%C), and the temperature (%t)
curl -sL wttr.in\?format="+%C+%t$display_weather" curl -sL wttr.in\?format="%C+%t$display_weather"
} }
#get weather display #get weather display