Skip to content

Commit 8ccefb9

Browse files
Fam ZhengMichael Tokarev
Fam Zheng
authored and
Michael Tokarev
committed
configure: Replace which(1) with "has"
Using "has" is more slick because which(1) is not always there. Signed-off-by: Fam Zheng <[email protected]> Reviewed-by: Stefan Weil <[email protected]> Reviewed-by: Amos Kong <[email protected]> Signed-off-by: Michael Tokarev <[email protected]>
1 parent e1cf558 commit 8ccefb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configure

+1-1
Original file line numberDiff line numberDiff line change
@@ -2727,7 +2727,7 @@ fi
27272727
if test "$modules" = yes; then
27282728
shacmd_probe="sha1sum sha1 shasum"
27292729
for c in $shacmd_probe; do
2730-
if which $c >/dev/null 2>&1; then
2730+
if has $c; then
27312731
shacmd="$c"
27322732
break
27332733
fi

0 commit comments

Comments
 (0)