Skip to content

Commit

Permalink
fix: tmux unknown cmd: attach-client (#937)
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveLauC authored Oct 8, 2024
1 parent 9c25cd7 commit 4932700
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/steps/tmux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,15 +162,15 @@ pub fn run_in_tmux(config: TmuxConfig) -> Result<()> {
println!("{}", t!("Topgrade launched in a new tmux session"));
return Ok(());
} else {
tmux.build().args(["attach-client", "-t", &session]).exec()
tmux.build().args(["attach-session", "-t", &session]).exec()
}
}

TmuxSessionMode::AttachAlways => {
if is_inside_tmux {
tmux.build().args(["switch-client", "-t", &session]).exec()
} else {
tmux.build().args(["attach-client", "-t", &session]).exec()
tmux.build().args(["attach-session", "-t", &session]).exec()
}
}
};
Expand Down

0 comments on commit 4932700

Please sign in to comment.