]> git.sev.monster Git - dotfiles.git/blobdiff - bin/.check-busybox
simplify some gpg stuff, add pinentry fallback
[dotfiles.git] / bin / .check-busybox
index f8223197bf2c72f20c671534e95cc637b5d763ba..48abb8d7482e9dcc71392b8134ed39d5081c9ac1 100644 (file)
@@ -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")")")" ]
 }
This page took 0.031057 seconds and 4 git commands to generate.