From 3bc692c20451f8d1b920a8c44c3e1071e3360625 Mon Sep 17 00:00:00 2001 From: AnilAntari <86964331+AnilAntari@users.noreply.github.com> Date: Tue, 9 Jan 2024 00:43:31 +0300 Subject: [PATCH] Update weather.sh --- weather.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weather.sh b/weather.sh index 128972e..3a8cecf 100755 --- a/weather.sh +++ b/weather.sh @@ -44,7 +44,7 @@ api_key="a6c3cfde026d31b995612c6f169203a7" ipinfo_key="bd1acc5f04e870" user_ip=$(curl -s https://ifconfig.me/ip) -location_info=$(curl -s https://ipinfo.io/$user_ip?token=$ipinfo_key) +location_info=$(curl -s "https://ipinfo.io/$user_ip?token=$ipinfo_key") lat=$(echo "$location_info" | jq -r '.loc' | cut -d ',' -f 1) lon=$(echo "$location_info" | jq -r '.loc' | cut -d ',' -f 2)