From 4b547ef89973114c0a9cd502f804ef8f3f66171b Mon Sep 17 00:00:00 2001 From: Chaos Date: Mon, 20 Mar 2017 17:56:00 -0600 Subject: [PATCH] Fixes the same issue in command_start --- lgsm/functions/command_start.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lgsm/functions/command_start.sh b/lgsm/functions/command_start.sh index 1f411af48..4bad75d7b 100644 --- a/lgsm/functions/command_start.sh +++ b/lgsm/functions/command_start.sh @@ -84,13 +84,13 @@ fn_start_tmux(){ tmux new-session -d -s "${servicename}" "${executable} ${parms}" 2> "${scriptlogdir}/.${servicename}-tmux-error.tmp" # tmux pipe-pane not supported in tmux versions < 1.6 - if [ "$(tmux -V|sed "s/tmux //"|sed -n '1 p'|tr -cd '[:digit:]')" -lt "16" ]; then + if [ "$(tmux -V|sed "s/tmux //"|sed -n '1 p'|tr -cd '[:digit:]')" -lt "16" ] 2>/dev/null; then echo "Console logging disabled: Tmux => 1.6 required https://gameservermanagers.com/tmux-upgrade Currently installed: $(tmux -V)" > "${consolelog}" # Console logging disabled: Bug in tmux 1.8 breaks logging - elif [ "$(tmux -V|sed "s/tmux //"|sed -n '1 p'|tr -cd '[:digit:]')" -eq "18" ]; then + elif [ "$(tmux -V|sed "s/tmux //"|sed -n '1 p'|tr -cd '[:digit:]')" -eq "18" ] 2>/dev/null; then echo "Console logging disabled: Bug in tmux 1.8 breaks logging https://gameservermanagers.com/tmux-upgrade Currently installed: $(tmux -V)" > "${consolelog}"