From 4020ae1d86b9781af913f683c2ba8783c13e5546 Mon Sep 17 00:00:00 2001 From: yzenati <9922120+yzenati@users.noreply.github.com> Date: Fri, 16 Oct 2020 13:32:28 +0200 Subject: [PATCH] Remove the extra space at the beginning of the result of curl command --- scripts/weather.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/weather.sh b/scripts/weather.sh index faa2783..1c757b4 100755 --- a/scripts/weather.sh +++ b/scripts/weather.sh @@ -18,7 +18,7 @@ fetch_weather_information() { display_weather=$1 # 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