From c27cbff8ab1b321e0642d324db3118a44365a31e Mon Sep 17 00:00:00 2001 From: Joe cooper Date: Fri, 26 May 2017 14:51:12 -0500 Subject: [PATCH] Hide error if kill pid is already gone --- slib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slib.sh b/slib.sh index ec0f7a3..9fe120b 100644 --- a/slib.sh +++ b/slib.sh @@ -349,7 +349,7 @@ run_ok () { local pidcheck pidcheck=$(ps -eh ${spinpid}) if [ ! -z "$pidcheck" ]; then - kill $spinpid + kill $spinpid 2>/dev/null fi # Log what we were supposed to be running printf "${msg}: " >> ${RUN_LOG}