diff --git a/testssl.sh b/testssl.sh index 04b2cf4..02d246b 100755 --- a/testssl.sh +++ b/testssl.sh @@ -90,7 +90,7 @@ egrep -q "dev|rc" <<< "$VERSION" && \ SWURL="https://testssl.sh/ " readonly PROG_NAME=$(basename "$0") -readonly RUN_DIR=$(dirname "$0") +readonly RUN_DIR=$(dirname "$(readlink -e $0)") INSTALL_DIR="" MAPPING_FILE_RFC="" OPENSSL_LOCATION="" @@ -5391,7 +5391,7 @@ old_fart() { # it provides "keycode/ RFC style name", see RFCs, cipher(1), www.carbonwind.net/TLS_Cipher_Suites_Project/tls_ssl_cipher_suites_simple_table_all.htm get_install_dir() { #INSTALL_DIR=$(cd "$(dirname "$0")" && pwd)/$(basename "$0") - INSTALL_DIR=$(dirname ${BASH_SOURCE[0]}) + INSTALL_DIR=$(dirname "$(readlink -e ${BASH_SOURCE[0]})") [[ -r "$RUN_DIR/etc/mapping-rfc.txt" ]] && MAPPING_FILE_RFC="$RUN_DIR/etc/mapping-rfc.txt" [[ -r "$INSTALL_DIR/etc/mapping-rfc.txt" ]] && MAPPING_FILE_RFC="$INSTALL_DIR/etc/mapping-rfc.txt"