From 38859afe5a8097385e84d27abbef93279f96874c Mon Sep 17 00:00:00 2001 From: Todd Swatling Date: Tue, 18 Apr 2017 16:27:38 -0400 Subject: [PATCH] modified find_openssl_binary() to use TESTSSL_INSTALL_DIR since get_install_dir() works very hard to determine the where testssl actually is --- testssl.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testssl.sh b/testssl.sh index 6bc5cfe..9c641b8 100755 --- a/testssl.sh +++ b/testssl.sh @@ -10466,9 +10466,9 @@ find_openssl_binary() { elif [[ -e "/mnt/c/Windows/System32/bash.exe" ]] && test_openssl_suffix "$(dirname "$(which openssl)")"; then # 2. otherwise, only if on Bash on Windows, use system binaries only. SYSTEM2="WSL" - elif test_openssl_suffix "$RUN_DIR"; then + elif test_openssl_suffix "$TESTSSL_INSTALL_DIR"; then : # 3. otherwise try openssl in path of testssl.sh - elif test_openssl_suffix "$RUN_DIR/bin"; then + elif test_openssl_suffix "$TESTSSL_INSTALL_DIR/bin"; then : # 4. otherwise here, this is supposed to be the standard --platform independed path in the future!!! elif test_openssl_suffix "$(dirname "$(which openssl)")"; then : # 5. we tried hard and failed, so now we use the system binaries