From f9002b417cbf90a2971b406b81e230c581917464 Mon Sep 17 00:00:00 2001 From: Roey Darwish Dror Date: Mon, 22 Mar 2021 16:04:27 +0200 Subject: [PATCH] Execute the user default shell when using remotes (fix #670) (#676) --- src/steps/remote/ssh.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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");