1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-30 04:27:45 +00:00

uutils: handle prefixes instead of suffixes

This commit is contained in:
Arcterus 2014-07-01 13:13:41 -07:00
parent 8328ba2e0a
commit 0de4325287

View file

@ -58,8 +58,8 @@ fn main() {
None => (), None => (),
} }
if binary_as_util.starts_with("uutils") if binary_as_util.ends_with("uutils")
|| binary_as_util.starts_with("busybox") { || binary_as_util.ends_with("busybox") {
// uutils can be called as either "uutils", "busybox" // uutils can be called as either "uutils", "busybox"
// "uutils-suffix" or "busybox-suffix". Not sure // "uutils-suffix" or "busybox-suffix". Not sure
// what busybox uses the -suffix pattern for. // what busybox uses the -suffix pattern for.