hotfix - resolved error message in the beginning

This commit is contained in:
hornet 2023-11-09 00:45:15 +06:00 committed by GitHub
parent a5b26a9a94
commit b2b67b9e23
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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