Compare commits
2 Commits
33e70aac4f
...
82313ffc44
Author | SHA1 | Date | |
---|---|---|---|
![]() |
82313ffc44 | ||
![]() |
b4c447968b |
@ -2,7 +2,7 @@
|
||||
name = "delayr"
|
||||
version = "0.1.0"
|
||||
authors = ["Samuel FORESTIER <dev+delayr@samuel.domains>"]
|
||||
description = "Rust UNIX system tool that sleeps a random duration before executing another program"
|
||||
description = "A Rust UNIX system tool that randomly delays another program execution"
|
||||
edition = "2021"
|
||||
homepage = "https://git.forestier.app/HorlogekSkynet/delayr"
|
||||
license = "MIT"
|
||||
|
@ -1,6 +1,6 @@
|
||||
# delayr
|
||||
|
||||
> Rust UNIX system tool that sleeps a random duration before executing another program
|
||||
> A Rust UNIX system tool that randomly delays another program execution
|
||||
|
||||
## Build
|
||||
|
||||
|
@ -82,5 +82,10 @@ fn main() {
|
||||
.env_remove(DEFAULT_WRITE_STYLE_ENV)
|
||||
.exec();
|
||||
error!("Error while executing {:?}: {}", args.arguments, error);
|
||||
process::exit(1);
|
||||
|
||||
process::exit(if let Some(raw_os_error) = error.raw_os_error() {
|
||||
raw_os_error
|
||||
} else {
|
||||
1
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user