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:
parent
8328ba2e0a
commit
0de4325287
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue