Remove the extra space at the beginning of the result of curl command
This commit is contained in:
parent
06f257d482
commit
4020ae1d86
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue