[Fix] Fix boolean usage in deployer stop

This commit is contained in:
samuel 2023-05-09 15:11:37 +02:00
parent d5ca04a90d
commit 89131ec9ee
1 changed files with 3 additions and 2 deletions

View File

@ -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}"
;;