Merge pull request #73 from ImperadorSid/fix-disabled-weather

Fix blocking loop when weather is not enabled
This commit is contained in:
Ethan Edwards 2020-09-20 16:23:53 -04:00 committed by GitHub
commit 85ce8a8b4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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