Fixed multiple openssl packages detection.
@@ -100,7 +100,7 @@ ifdef IS_MACOS
ifeq ($(CRYPTO_ENGINE_PATH),openssl)
# if brew is installed, if openssl is installed
- PACKAGELIST = $(shell brew list | grep 'openssl')
+ PACKAGELIST = $(shell brew list | grep -om1 '^openssl')
ifeq ($(PACKAGELIST),openssl)
# path to openssl (usually "/usr/local/opt/openssl")
