Skip to content

Commit 2c193ff

Browse files
tarebyteCopilot
andcommitted
Fix tmux version detection to use -V flag
tmux uses '-V' not '--version'. The generic tool_version helper was printing the usage string instead of the version. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 4c9b15d commit 2c193ff

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

script/install-codespace-tools

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,13 @@ else
133133
fi
134134

135135
if command -v tmux >/dev/null 2>&1; then
136-
echo " ✓ tmux already installed ($(tool_version tmux))"
136+
echo " ✓ tmux already installed ($(tmux -V))"
137137
else
138138
start=$SECONDS
139139
echo " Installing tmux..."
140140
echo " sudo: installing via apt-get..."
141141
sudo apt-get install -yq tmux >/dev/null 2>&1
142-
echo " ✓ tmux installed ($(tool_version tmux), $((SECONDS - start))s)"
142+
echo " ✓ tmux installed ($(tmux -V), $((SECONDS - start))s)"
143143
fi
144144

145145
echo ""

0 commit comments

Comments
 (0)