mirror of
https://github.com/smxi/inxi.git
synced 2025-01-19 08:57:57 +00:00
bug fix
This commit is contained in:
parent
a8c397a3cb
commit
5be282cea6
2
inxi
2
inxi
|
@ -7981,7 +7981,7 @@ get_weather_data()
|
||||||
# actual weather data, assuming no errors
|
# actual weather data, assuming no errors
|
||||||
if [[ -n $ALTERNATE_WEATHER_LOCATION ]];then
|
if [[ -n $ALTERNATE_WEATHER_LOCATION ]];then
|
||||||
# note, this api does not support spaces in names
|
# note, this api does not support spaces in names
|
||||||
location=$( sed 's/[[:space:]]*//g' $ALTERNATE_WEATHER_LOCATION )
|
location=$( sed 's/[[:space:]]*//g' <<< $ALTERNATE_WEATHER_LOCATION )
|
||||||
else
|
else
|
||||||
if [[ $b_test_loc != 'true' ]];then
|
if [[ $b_test_loc != 'true' ]];then
|
||||||
location_data=$( wget -q -t 1 -T $WGET_TIMEOUT -O- $location_site || wget_error=$? )
|
location_data=$( wget -q -t 1 -T $WGET_TIMEOUT -O- $location_site || wget_error=$? )
|
||||||
|
|
Loading…
Reference in a new issue