diff --git a/src/steps/remote/ssh.rs b/src/steps/remote/ssh.rs index 48383fff..e8345f53 100644 --- a/src/steps/remote/ssh.rs +++ b/src/steps/remote/ssh.rs @@ -17,7 +17,7 @@ pub fn ssh_step(ctx: &ExecutionContext, hostname: &str) -> Result<()> { } let env = format!("TOPGRADE_PREFIX={}", hostname); - args.extend(&["env", &env, topgrade]); + args.extend(&["env", &env, "$SHELL", "-lc", topgrade]); if ctx.config().yes() { args.push("-y"); @@ -45,7 +45,7 @@ pub fn ssh_step(ctx: &ExecutionContext, hostname: &str) -> Result<()> { } let env = format!("TOPGRADE_PREFIX={}", hostname); - args.extend(&["env", &env, topgrade]); + args.extend(&["env", &env, "$SHELL", "-lc", topgrade]); if ctx.config().yes() { args.push("-y");