From 89131ec9ee56d702fe4238c8921bba8663eb9859 Mon Sep 17 00:00:00 2001 From: samuel Date: Tue, 9 May 2023 15:11:37 +0200 Subject: [PATCH] [Fix] Fix boolean usage in deployer stop --- src/runner.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/runner.sh b/src/runner.sh index fb35a30..47292d1 100755 --- a/src/runner.sh +++ b/src/runner.sh @@ -546,8 +546,9 @@ main() ( fail "Runner process with pid='${pid}' is not running." \ "${err_runner_process_not_running}" fi - if ! kill "${pid}" || kill -KILL "${pid}"; then - fail "Cannot kill runner process." "${err_runner_process_not_killed}" + if ! output="$(kill "${pid}" || kill -KILL "${pid}")"; then + fail "Cannot kill runner process: ${output}." \ + "${err_runner_process_not_killed}" fi rm --force "${runner_sock}" ;;