run_custom_command: use interactive shell on unix (#347)
This commit is contained in:
@@ -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<()> {
|
pub fn run_custom_command(name: &str, command: &str, ctx: &ExecutionContext) -> Result<()> {
|
||||||
print_separator(name);
|
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<()> {
|
pub fn run_composer_update(ctx: &ExecutionContext) -> Result<()> {
|
||||||
|
|||||||
Reference in New Issue
Block a user