From 4af7c48a523e4655a6f8d663ace34850cf7ad948 Mon Sep 17 00:00:00 2001 From: samuel Date: Tue, 9 May 2023 14:33:19 +0200 Subject: [PATCH] [Fix] Fix boolean command in deployer --- src/deployer.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/deployer.sh b/src/deployer.sh index 1e8f396..a6efad6 100755 --- a/src/deployer.sh +++ b/src/deployer.sh @@ -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}"