Why does the script not exit immediately when there are no windows found?
This commit is contained in:
1 parent
bd4812a39e
commit
cb80fd00a2
1 file changed
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user