posix alternative for which

This commit is contained in:
vv01f 2020-07-12 20:51:24 +02:00
parent cae36ccce3
commit aaea761c8e
Signed by untrusted user who does not match committer: vv01f
GPG Key ID: 02625A16AC1D1FF6
1 changed files with 1 additions and 1 deletions

2
gen.sh
View File

@ -4,7 +4,7 @@
assert_tools () {
err=0
while test $# -gt 0; do
which $1 >/dev/null 2>/dev/null || {
command "$1" >/dev/null 2>/dev/null || {
>&2 printf "tool missing: $1\n"
err=$(( $err + 1 ))
}