Fix output capturing
This commit is contained in:
parent
b66dbe87f1
commit
7cf4f44e56
1 changed files with 5 additions and 2 deletions
|
|
@ -141,8 +141,11 @@ fn exec(
|
|||
println!("{}", format_command(&program, &dir, args));
|
||||
}
|
||||
|
||||
let child = Command::new(&program).current_dir(&dir).args(args.iter()).spawn()?;
|
||||
let output = child.wait_with_output()?;
|
||||
let output = Command::new(&program)
|
||||
.current_dir(&dir)
|
||||
.args(args.iter())
|
||||
.output()
|
||||
.unwrap();
|
||||
let success = output.status.success();
|
||||
|
||||
if !context.check && !success {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue