Browse Source

fix: regression from #3328 for tmux version (#3342)

pull/3343/head
Christian 4 years ago
committed by GitHub
parent
commit
3942ff6101
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      lgsm/functions/info_distro.sh

4
lgsm/functions/info_distro.sh

@ -73,8 +73,10 @@ glibcversion=$(ldd --version | sed -n '1s/.* //p')
# e.g: tmux 1.6
if [ ! "$(command -V tmux 2>/dev/null)" ]; then
tmuxv="${red}NOT INSTALLED!${default}"
tmuxvdigit="0"
else
if [ "$(tmux -V | sed "s/tmux //" | sed -n '1 p' | tr -cd '[:digit:]')" -lt "16" ]; then
tmuxvdigit="$(tmux -V | sed "s/tmux //" | sed -n '1 p' | tr -cd '[:digit:]')"
if [ "${tmuxvdigit}" -lt "16" ]; then
tmuxv="$(tmux -V) (>= 1.6 required for console log)"
else
tmuxv=$(tmux -V)

Loading…
Cancel
Save