X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/blobdiff_plain/abd1eae8291c91fe62bcf22fc15a93178f1ab491..7ed1509a5b8e6985cbf9cd0d019df702dd17425e:/bin/.check-busybox diff --git a/bin/.check-busybox b/bin/.check-busybox index f822319..48abb8d 100644 --- a/bin/.check-busybox +++ b/bin/.check-busybox @@ -1,4 +1,4 @@ #!/bin/sh function check-busybox() { - which $1 >/dev/null 2>&1 && [ "$(basename "$(readlink -f "$(which "$1" | head -1)")")" = "busybox" ] + command -v "$1" >/dev/null 2>&1 && [ "busybox" = "$(basename "$(readlink -f "$(command -v "$1")")")" ] }