Skip to content

Commit 3942ff6

Browse files
authored
fix: regression from #3328 for tmux version (#3342)
1 parent 40625a7 commit 3942ff6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lgsm/functions/info_distro.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,10 @@ glibcversion=$(ldd --version | sed -n '1s/.* //p')
7373
# e.g: tmux 1.6
7474
if [ ! "$(command -V tmux 2>/dev/null)" ]; then
7575
tmuxv="${red}NOT INSTALLED!${default}"
76+
tmuxvdigit="0"
7677
else
77-
if [ "$(tmux -V | sed "s/tmux //" | sed -n '1 p' | tr -cd '[:digit:]')" -lt "16" ]; then
78+
tmuxvdigit="$(tmux -V | sed "s/tmux //" | sed -n '1 p' | tr -cd '[:digit:]')"
79+
if [ "${tmuxvdigit}" -lt "16" ]; then
7880
tmuxv="$(tmux -V) (>= 1.6 required for console log)"
7981
else
8082
tmuxv=$(tmux -V)

0 commit comments

Comments
 (0)