[Fix] Fix boolean command in deployer
This commit is contained in:
parent
048a325166
commit
4af7c48a52
|
@ -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}"
|
||||
|
|
Loading…
Reference in New Issue