Merge pull request #2846 from testssl/find_autohomebrewssl

Try harder to find OPENSSL2
This commit is contained in:
Dirk Wetter 2025-07-16 09:52:50 +02:00 committed by GitHub
commit a719c46bcb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20947,6 +20947,11 @@ find_openssl_binary() {
openssl_location="$(type -p $OPENSSL)" openssl_location="$(type -p $OPENSSL)"
# kludge for e.g. MacOS and brew
if [[ $OPENSSL == $OPENSSL2 ]]; then
OPENSSL2=$(type -a openssl | grep -v /usr/bin/openssl | awk '{ print $NF }')
fi
[[ -n "$GIT_REL" ]] && \ [[ -n "$GIT_REL" ]] && \
cwd="$PWD" || \ cwd="$PWD" || \
cwd="$RUN_DIR" cwd="$RUN_DIR"