From db1bf0d72e0f5351f64d163fcef48a9d433795ad Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Sat, 31 Dec 2022 13:35:14 +0100 Subject: [PATCH] fix shellcheck errors --- timeout | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/timeout b/timeout index 1384ae4..ee61f49 100755 --- a/timeout +++ b/timeout @@ -23,7 +23,7 @@ run_script() { } stop_delete_script() { - kill -9 $1 + kill -9 "$1" rm -f "$2" } @@ -35,8 +35,6 @@ check_pid() { test -d "/proc/$PID/" && sleep 1 || STATUS=0 done - kill -9 "$PID" - printf "%d" ${STATUS:-1} }