1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 12:07:46 +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 => (),
}
if binary_as_util.starts_with("uutils")
|| binary_as_util.starts_with("busybox") {
if binary_as_util.ends_with("uutils")
|| binary_as_util.ends_with("busybox") {
// uutils can be called as either "uutils", "busybox"
// "uutils-suffix" or "busybox-suffix". Not sure
// what busybox uses the -suffix pattern for.