Use bash-builtin command -v instead of external which

`command -v` is a bash builtin and is a standardized version of `which`
This commit is contained in:
a1346054
2022-09-12 23:24:26 +00:00
parent b3c49b584d
commit 902bdf3d92
3 changed files with 5 additions and 5 deletions

View File

@ -36,7 +36,7 @@ find_openssl_binary() {
: # 2. otherwise try openssl in path of testssl.sh
elif test_openssl_suffix ../$RUN_DIR/bin; then
: # 3. otherwise here, this is supposed to be the standard --platform independent path in the future!!!
elif test_openssl_suffix "$(dirname "$(which openssl)")"; then
elif test_openssl_suffix "$(dirname "$(command -v openssl)")"; then
: # 5. we tried hard and failed, so now we use the system binaries
fi