Add support for passing arguments to tmux (fix #236) (#250)

This commit is contained in:
Roey Darwish Dror
2019-11-06 07:27:01 +02:00
committed by GitHub
parent 6021a551ac
commit 8ce55f4c31
5 changed files with 75 additions and 39 deletions

View File

@@ -79,7 +79,7 @@ fn run() -> Result<(), Error> {
if config.run_in_tmux() && env::var("TOPGRADE_INSIDE_TMUX").is_err() {
#[cfg(unix)]
{
tmux::run_in_tmux();
tmux::run_in_tmux(config.tmux_arguments());
}
}
@@ -142,6 +142,7 @@ fn run() -> Result<(), Error> {
remote_topgrade,
config.ssh_arguments(),
config.run_in_tmux(),
config.tmux_arguments(),
)
},
config.no_retry(),