1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 12:07:46 +00:00

rm recognition of "busybox" bin name in uutils.rs

This commit is contained in:
Nathan Ross 2015-12-20 20:55:16 -05:00
parent 73cfb04d11
commit 5ee7b5b8fc

View file

@ -49,12 +49,7 @@ fn main() {
None => (),
}
if binary_as_util.ends_with("uutils") || binary_as_util.starts_with("uutils") ||
binary_as_util.ends_with("busybox") || binary_as_util.starts_with("busybox") {
// uutils can be called as either "uutils", "busybox"
// "uutils-suffix" or "busybox-suffix". Not sure
// what busybox uses the -suffix pattern for.
} else {
if !(binary_as_util.ends_with("uutils") || binary_as_util.starts_with("uutils")) {
println!("{}: applet not found", binary_as_util);
std::process::exit(1);
}