mirror of
https://github.com/rust-lang/rust
synced 2024-10-06 08:40:35 +00:00
configure uses command -v
instead of which
#13147
This commit is contained in:
parent
b334f7c3cc
commit
092eefcfb2
4
configure
vendored
4
configure
vendored
|
@ -27,7 +27,7 @@ need_ok() {
|
||||||
}
|
}
|
||||||
|
|
||||||
need_cmd() {
|
need_cmd() {
|
||||||
if which $1 >/dev/null 2>&1
|
if command -v $1 >/dev/null 2>&1
|
||||||
then msg "found $1"
|
then msg "found $1"
|
||||||
else err "need $1"
|
else err "need $1"
|
||||||
fi
|
fi
|
||||||
|
@ -83,7 +83,7 @@ probe() {
|
||||||
local T
|
local T
|
||||||
for P
|
for P
|
||||||
do
|
do
|
||||||
T=$(which $P 2>&1)
|
T=$(command -v $P 2>&1)
|
||||||
if [ $? -eq 0 ]
|
if [ $? -eq 0 ]
|
||||||
then
|
then
|
||||||
VER0=$($P --version 2>/dev/null | head -1 \
|
VER0=$($P --version 2>/dev/null | head -1 \
|
||||||
|
|
Loading…
Reference in a new issue