I think I got it now
This commit is contained in:
parent
cdc2feafe0
commit
980bfc4e7e
@ -15,7 +15,7 @@ fn main() {
|
|||||||
let std_out = std::str::from_utf8(&output.stdout).unwrap();
|
let std_out = std::str::from_utf8(&output.stdout).unwrap();
|
||||||
print!("{}", std_out);
|
print!("{}", std_out);
|
||||||
let std_err = std::str::from_utf8(&output.stderr).unwrap();
|
let std_err = std::str::from_utf8(&output.stderr).unwrap();
|
||||||
print!("{}", std_err);
|
eprint!("{}", std_err);
|
||||||
|
|
||||||
match output.status.code() {
|
match output.status.code() {
|
||||||
Some(code) => std::process::exit(code),
|
Some(code) => std::process::exit(code),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user