X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/blobdiff_plain/b3de839550de80c432921825a2c07a2791df1a1f..7ddca96da6e30ad4b5a05c4804bf11911bd671eb:/bin/.check-busybox?ds=sidebyside 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")")")" ] }