From 1e4a30de83964381d22403201b4156c68a86bd1d Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sat, 1 Jan 2022 02:20:59 -0600 Subject: [PATCH] Silence tmux has-session output --- Scripts/7D2D-Manage.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/7D2D-Manage.bash b/Scripts/7D2D-Manage.bash index 0c1afe3..d44a904 100644 --- a/Scripts/7D2D-Manage.bash +++ b/Scripts/7D2D-Manage.bash @@ -376,7 +376,7 @@ kill_server() { return 1 fi else - while tmux has-session -t "${session}"; do + while tmux has-session -t "${session}" > /dev/null 2>&1; do log "info" "Attempting to gracefully kill $(important "${session}")" tmux send-keys -t "7D2D-Server-${server_id}" C-c log "info" "Sent Exit Request, waiting 10 seconds..."