diff --git a/install-tmux.ps1 b/install-tmux.ps1 index 2aba93d..d93a134 100644 --- a/install-tmux.ps1 +++ b/install-tmux.ps1 @@ -52,7 +52,7 @@ Info "Installing tmux..." $tmuxCmd = Get-Command tmux -ErrorAction SilentlyContinue if ($tmuxCmd) { $currentVer = & tmux -V 2>$null - if ($LASTEXITPR -ne 0) { $currentVer = "unknown" } + if (-not $currentVer) { $currentVer = "unknown" } Info "tmux is already installed ($currentVer). Skipping installation." } else { if (-not (Get-Command winget -ErrorAction SilentlyContinue)) {