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

@@ -149,13 +149,14 @@ pub fn run_remote_topgrade(
hostname: &str,
ssh_arguments: &Option<String>,
run_in_tmux: bool,
_tmux_arguments: &Option<String>,
) -> Result<(), Error> {
let ssh = utils::require("ssh")?;
if run_in_tmux && !run_type.dry() {
#[cfg(unix)]
{
crate::tmux::run_remote_topgrade(hostname, &ssh)?;
crate::tmux::run_remote_topgrade(hostname, &ssh, _tmux_arguments)?;
Err(ErrorKind::SkipStep.into())
}