mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-04-29 06:18:02 +00:00
REGTESTS: use "command" instead of "which" for better POSIX compatibility
for example, "which" is not installed by default in Fedora docker image.
This commit is contained in:
parent
05f0188943
commit
7faeea9750
@ -191,8 +191,8 @@ _findtests() {
|
|||||||
done
|
done
|
||||||
|
|
||||||
for requiredbin in $require_binaries; do
|
for requiredbin in $require_binaries; do
|
||||||
which $requiredbin >/dev/null 2>&1
|
if ! command -v $requiredbin >/dev/null 2>&1
|
||||||
if [ "$?" -eq "1" ]; then
|
then
|
||||||
echo " Skip $i because '"$requiredbin"' is not installed"
|
echo " Skip $i because '"$requiredbin"' is not installed"
|
||||||
skiptest=1
|
skiptest=1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user