mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
uutils: handle prefixes instead of suffixes
This commit is contained in:
+2
-2
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user