From: Willy Tarreau Date: Tue, 18 Feb 2020 13:42:33 +0000 (+0100) Subject: REGTESTS: use "command -v" instead of "which" X-Git-Tag: v2.2-dev3~52 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b5e62679aaf1369b9a8f5604d8ab438e6bc70e2d;p=thirdparty%2Fhaproxy.git 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 --- diff --git a/reg-tests/compression/lua_validation.vtc b/reg-tests/compression/lua_validation.vtc index 6e8c1e8796..91a41a02ca 100644 --- a/reg-tests/compression/lua_validation.vtc +++ b/reg-tests/compression/lua_validation.vtc @@ -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"