hotfix - resolved error message in the beginning
This commit is contained in:
parent
a5b26a9a94
commit
b2b67b9e23
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue