Skip to content

Commit a719c46

Browse files
authored
Merge pull request #2846 from testssl/find_autohomebrewssl
Try harder to find OPENSSL2
2 parents 10af370 + 88b7af8 commit a719c46

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

testssl.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20946,7 +20946,12 @@ find_openssl_binary() {
2094620946
initialize_engine
2094720947

2094820948
openssl_location="$(type -p $OPENSSL)"
20949-
20949+
20950+
# kludge for e.g. MacOS and brew
20951+
if [[ $OPENSSL == $OPENSSL2 ]]; then
20952+
OPENSSL2=$(type -a openssl | grep -v /usr/bin/openssl | awk '{ print $NF }')
20953+
fi
20954+
2095020955
[[ -n "$GIT_REL" ]] && \
2095120956
cwd="$PWD" || \
2095220957
cwd="$RUN_DIR"

0 commit comments

Comments
 (0)