From b2b67b9e2345926a8e6a1ce65d940f7df6bc079d Mon Sep 17 00:00:00 2001 From: hornet <88428122+HornetMaidan@users.noreply.github.com> Date: Thu, 9 Nov 2023 00:45:15 +0600 Subject: [PATCH] hotfix - resolved error message in the beginning --- weather.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weather.sh b/weather.sh index 14353e8..3d71983 100644 --- a/weather.sh +++ b/weather.sh @@ -26,7 +26,7 @@ api_url="https://api.openweathermap.org/data/2.5/weather?lat=$lat&lon=$lon&units #echo $api_url weather_data=$(curl -s $api_url) #echo $weather_data -weather_desc=$(echo $weather_data | jq -r '.weather.[].description') +weather_desc=$(echo $weather_data | jq -r '.weather[].description') city=$(echo $weather_data | jq -r '.name') if [[ "$city" == "Nur-Sultan" ]] ; then