From 584284ea7b6a6988615507c787b441e558a7f3bf Mon Sep 17 00:00:00 2001 From: Jonathan Protzenko Date: Wed, 19 Jun 2024 13:58:30 -0700 Subject: [PATCH] Fix openssl autodetection --- tools/openssl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/openssl.py b/tools/openssl.py index 7a2cdb74..a513062d 100644 --- a/tools/openssl.py +++ b/tools/openssl.py @@ -9,7 +9,7 @@ def find_openssl_home(): mprint(f"Probing for openssl with brew ... ") try: result = subprocess.run( - ["brew info --quiet openssl | egrep '^/' | cut -f 1 -d ' '"], shell=True, capture_output=True, text=True + ["brew info --quiet openssl | egrep '^/' | cut -f 1 -d ' ' | tail -n 1"], shell=True, capture_output=True, text=True ).stdout.rstrip() mprint("Found OpenSSL at", result) return result