From 29d80e88ce8d8b44dbece05cb33c9ab64e9067fd Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sat, 14 Feb 2015 20:53:07 +0000 Subject: [PATCH] Removed tail -c 3. caused issues in Slackware --- functions/fn_details_distro | 2 +- functions/fn_start | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/functions/fn_details_distro b/functions/fn_details_distro index 97c12e2a0..378146df8 100644 --- a/functions/fn_details_distro +++ b/functions/fn_details_distro @@ -29,7 +29,7 @@ glibcv=$(ldd --version |grep ldd|awk '{print $NF}') # e.g: tmux 1.6 if [ -z "$(command -v tmux)" ]; then tmuxv="\e[0;31mNOT INSTALLED!\e[0m" -elif [ "$(tmux -V|sed "s/tmux //"|sed -n '1 p'|tr -cd [:digit:]|tail -c 3)" -lt "16" ]; then +elif [ "$(tmux -V|sed "s/tmux //"|sed -n '1 p'|tr -cd [:digit:])" -lt "16" ]; then tmuxv="$(tmux -V) (>= 1.6 required for console log)" else tmuxv=$(tmux -V) diff --git a/functions/fn_start b/functions/fn_start index daecc258f..d013ad6fe 100644 --- a/functions/fn_start +++ b/functions/fn_start @@ -2,7 +2,7 @@ # LGSM fn_start function # Author: Daniel Gibbs # Website: http://danielgibbs.co.uk -# Version: 080214 +# Version: 140214 # Description: Starts the server. @@ -104,7 +104,7 @@ date > "${rootdir}/${lockselfname}" cd "${executabledir}" 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:]|tail -c 3)" -lt "16" ]; then +if [ "$(tmux -V|sed "s/tmux //"|sed -n '1 p'|tr -cd [:digit:])" -lt "16" ]; then echo "Console logging disabled: Tmux => 1.6 required" >> "${consolelog}" echo "Currently installed: $(tmux -V)" >> "${consolelog}" else