posix alternative for which
This commit is contained in:
parent
cae36ccce3
commit
aaea761c8e
2
gen.sh
2
gen.sh
|
@ -4,7 +4,7 @@
|
||||||
assert_tools () {
|
assert_tools () {
|
||||||
err=0
|
err=0
|
||||||
while test $# -gt 0; do
|
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"
|
>&2 printf "tool missing: $1\n"
|
||||||
err=$(( $err + 1 ))
|
err=$(( $err + 1 ))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue