[Fix] Fix boolean command in deployer

This commit is contained in:
samuel 2023-05-09 14:33:19 +02:00
parent 048a325166
commit 4af7c48a52
1 changed files with 2 additions and 2 deletions

View File

@ -440,8 +440,8 @@ main() (
fail "Deployer process with pid='${pid}' is not running." \
"${err_deployer_process_not_running}"
fi
if ! kill "${pid}" || kill -KILL "${pid}"; then
fail "Cannot kill deployer process." \
if ! output="$(kill "${pid}" 2>&1 || kill -KILL "${pid}" 2>&1)"; then
fail "Cannot kill deployer process: ${output}." \
"${err_deployer_process_not_killed}"
fi
rm --force "${deployer_sock}"