Another attempt
This commit is contained in:
parent
3427477ec8
commit
9df2b6a98a
@ -14,9 +14,13 @@ fn main() {
|
|||||||
|
|
||||||
if output.status.success() {
|
if output.status.success() {
|
||||||
let std_out = std::str::from_utf8(&output.stdout).unwrap();
|
let std_out = std::str::from_utf8(&output.stdout).unwrap();
|
||||||
print!("{}", std_out);
|
if std_out.len() > 0 {
|
||||||
|
println!("{}", 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);
|
if std_err.len() > 0 {
|
||||||
|
println!("{}", std_err);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
std::process::exit(1);
|
std::process::exit(1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user