From 49327000fc9cc6d87c938eea050f935d7e43dc29 Mon Sep 17 00:00:00 2001 From: SteveLauC Date: Tue, 8 Oct 2024 21:33:53 +0800 Subject: [PATCH] fix: tmux unknown cmd: attach-client (#937) --- src/steps/tmux.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/steps/tmux.rs b/src/steps/tmux.rs index 1914719c..f6998868 100644 --- a/src/steps/tmux.rs +++ b/src/steps/tmux.rs @@ -162,7 +162,7 @@ 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() } } @@ -170,7 +170,7 @@ pub fn run_in_tmux(config: TmuxConfig) -> Result<()> { 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() } } };