From 3e28428880f93308e20c1218606a55bd52ab8c03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mois=C3=A9s=20Carvalho?= Date: Sun, 20 Sep 2020 15:03:06 -0300 Subject: [PATCH] Fix blocking loop when weather is not enabled --- scripts/dracula.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dracula.sh b/scripts/dracula.sh index f3adc12..10b5a94 100755 --- a/scripts/dracula.sh +++ b/scripts/dracula.sh @@ -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