From d47ce1aae3e5f461cc09a1f62603e443b9ca513f Mon Sep 17 00:00:00 2001 From: Joe cooper Date: Wed, 17 May 2017 02:56:27 -0500 Subject: [PATCH] fix empty var test --- slib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slib.sh b/slib.sh index 055182e..6482b83 100644 --- a/slib.sh +++ b/slib.sh @@ -324,7 +324,7 @@ run_ok () { done # Just in case the spinner survived somehow, kill it. local pidcheck=$(ps -e | grep ${spinpid}) - if [ "${pidcheck}" ]; then + if [ -z "${pidcheck}" ]; then kill $spinpid fi # Log what we were supposed to be running