Skip to content

Commit 092eefc

Browse files
committed
configure uses command -v instead of which #13147
1 parent b334f7c commit 092eefc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

configure

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ need_ok() {
2727
}
2828

2929
need_cmd() {
30-
if which $1 >/dev/null 2>&1
30+
if command -v $1 >/dev/null 2>&1
3131
then msg "found $1"
3232
else err "need $1"
3333
fi
@@ -83,7 +83,7 @@ probe() {
8383
local T
8484
for P
8585
do
86-
T=$(which $P 2>&1)
86+
T=$(command -v $P 2>&1)
8787
if [ $? -eq 0 ]
8888
then
8989
VER0=$($P --version 2>/dev/null | head -1 \

0 commit comments

Comments
 (0)