mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-09-02 01:58:28 +02:00
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:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user