mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
Use new ProcessExit enum
This commit is contained in:
parent
56d6bb906c
commit
074b375034
1 changed files with 5 additions and 2 deletions
7
env/env.rs
vendored
7
env/env.rs
vendored
|
@ -190,8 +190,11 @@ fn main() {
|
|||
|
||||
match opts.program {
|
||||
[ref prog, ..args] => {
|
||||
let status = std::run::process_status(prog.as_slice(), args.as_slice());
|
||||
std::os::set_exit_status(status)
|
||||
let exit = std::run::process_status(prog.as_slice(), args.as_slice());
|
||||
match exit {
|
||||
std::rt::io::process::ExitStatus(status) => std::os::set_exit_status(status),
|
||||
_ => std::os::set_exit_status(1)
|
||||
}
|
||||
}
|
||||
|
||||
[] => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue