From f25cbb415d893b639fc3bcffb4cf6ab9510cf915 Mon Sep 17 00:00:00 2001 From: Earnestly Date: Mon, 4 Dec 2017 11:54:51 +0000 Subject: [PATCH] sx: test has clearer syntax when AND or OR is used --- sx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sx b/sx index dbd2450..db52ece 100755 --- a/sx +++ b/sx @@ -15,7 +15,7 @@ cleanup() { # regardless of failure. set +o errexit - if [ "$1" ] && [ "$(ps -o comm= "$1")" = Xorg ]; then + if test "$1" -a "$(ps -o comm= "$1")" = Xorg; then kill "$1" # Send SIGKILL after 10 seconds if the xserver is taking too long to