Why does the script not exit immediately when there are no windows found?

This commit is contained in:
probonopd authored and GitHub committed 2021-07-24 11:30:09 +02:00
1 parent bd4812a39e
commit cb80fd00a2
1 file changed
-1
-1
View File
@@ -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