sx: test has clearer syntax when AND or OR is used
This commit is contained in:
parent
a5fc2e3907
commit
f25cbb415d
2
sx
2
sx
|
@ -15,7 +15,7 @@ cleanup() {
|
||||||
# regardless of failure.
|
# regardless of failure.
|
||||||
set +o errexit
|
set +o errexit
|
||||||
|
|
||||||
if [ "$1" ] && [ "$(ps -o comm= "$1")" = Xorg ]; then
|
if test "$1" -a "$(ps -o comm= "$1")" = Xorg; then
|
||||||
kill "$1"
|
kill "$1"
|
||||||
|
|
||||||
# Send SIGKILL after 10 seconds if the xserver is taking too long to
|
# Send SIGKILL after 10 seconds if the xserver is taking too long to
|
||||||
|
|
Loading…
Reference in New Issue