run_custom_command: use interactive shell on unix (#347)

This commit is contained in:
Utkarsh Gupta
2023-02-03 01:16:11 +05:30
committed by GitHub
parent fcf776fe07
commit d767ef31a5

View File

@@ -467,7 +467,10 @@ pub fn run_myrepos_update(base_dirs: &BaseDirs, run_type: RunType) -> Result<()>
pub fn run_custom_command(name: &str, command: &str, ctx: &ExecutionContext) -> Result<()> {
print_separator(name);
ctx.run_type().execute(shell()).arg("-c").arg(command).status_checked()
let mut exec = ctx.run_type().execute(shell());
#[cfg(unix)]
exec.arg("-i");
exec.arg("-c").arg(command).status_checked()
}
pub fn run_composer_update(ctx: &ExecutionContext) -> Result<()> {