Browse Source

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

Christian 5 năm trước cách đây
mục cha
commit
3942ff6101
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      lgsm/functions/info_distro.sh

+ 3 - 1
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)