Do equality check for force
This commit is contained in:
parent
1e4a30de83
commit
cf3e75694d
@ -366,7 +366,7 @@ kill_server() {
|
|||||||
|
|
||||||
session="${prefix}-Server-${server_id}"
|
session="${prefix}-Server-${server_id}"
|
||||||
|
|
||||||
if "${force}"; then
|
if [[ "${force}" -eq 0 ]]; then
|
||||||
|
|
||||||
if tmux kill-session -t "${session}" >/dev/null 2>&1; then
|
if tmux kill-session -t "${session}" >/dev/null 2>&1; then
|
||||||
log "info" "Killed $(important "${prefix}-Server-${server_id}")"
|
log "info" "Killed $(important "${prefix}-Server-${server_id}")"
|
||||||
|
Loading…
Reference in New Issue
Block a user