mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-17 19:16:56 +00:00
REGTESTS: use "command -v" instead of "which"
Ilya reported that the "which" utility is not that much portable and is absent from Fedora. "type -p" is not portable either, and the correct solution appears to be "command -v", so let's use this for now, we can change it again in the future in case of problems. Link: https://www.mail-archive.com/haproxy@formilux.org/msg36332.html
This commit is contained in:
parent
70df7bf19c
commit
b5e62679aa
@ -40,7 +40,7 @@ shell {
|
||||
HOST="\[::1\]"
|
||||
fi
|
||||
|
||||
md5=$(which md5 || which md5sum)
|
||||
md5=$(command -v md5 || command -v md5sum)
|
||||
|
||||
if [ -z $md5 ] ; then
|
||||
echo "MD5 checksum utility not found"
|
||||
|
Loading…
Reference in New Issue
Block a user