Fix blocking loop when weather is not enabled

This commit is contained in:
Moisés Carvalho 2020-09-20 15:03:06 -03:00
parent cbf738b183
commit 3e28428880

View file

@ -106,7 +106,7 @@ main()
# wait unit data/weather.txt exists just to avoid errors
# this should almost never need to wait unless something unexpected occurs
while [ ! -f $current_dir/../data/weather.txt ]; do
while $show_weather && [ ! -f $current_dir/../data/weather.txt ]; do
sleep 0.01
done