From cb80fd00a22a3454dc58a816e02271379e057176 Mon Sep 17 00:00:00 2001 From: probonopd Date: Sat, 24 Jul 2021 11:30:09 +0200 Subject: [PATCH] Why does the script not exit immediately when there are no windows found? --- code/worker.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/code/worker.sh b/code/worker.sh index fb742773..437bbf92 100644 --- a/code/worker.sh +++ b/code/worker.sh @@ -254,7 +254,6 @@ xwininfo -tree -root | grep 0x | grep '": ("' | sed -e 's/^[[:space:]]*//' NUMBER_OF_WINDOWS=$(xwininfo -tree -root | grep 0x | grep '": ("' | sed -e 's/^[[:space:]]*//' | wc -l) echo "NUMBER_OF_WINDOWS: $NUMBER_OF_WINDOWS" if [ $(($NUMBER_OF_WINDOWS)) -lt 1 ] ; then - echo "ERROR: Could not find a single window on screen :-(" exit 1 fi