From d9b9d2c2fb0e826c0f75ca8bef6a3d7b5da06796 Mon Sep 17 00:00:00 2001 From: Dirk Wetter Date: Fri, 17 Jul 2015 14:58:12 +0200 Subject: [PATCH] * path display error in banner fixed --- testssl.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/testssl.sh b/testssl.sh index eb31fd4..24ff6d1 100755 --- a/testssl.sh +++ b/testssl.sh @@ -3642,10 +3642,9 @@ EOF [ -n "$GIT_REL" ] && \ cwd=$(/bin/pwd) || \ cwd=$RUN_DIR - echo "\$INSTALL_DIR${openssl_location//$cwd}" - #echo "\$INSTALL_DIRx${openssl_location/$cwd}" - #TODO: above is kind of ugly, below the substraction doesn't work - #echo $(which $OPENSSL | sed 's/'"$(echo "$PWD" | sed 's/\//\\\//g')"'/\$PWD/g') + [[ "$openssl_location" =~ "$cwd" ]] && + echo "\$INSTALL_DIR${openssl_location//$cwd}" || \ + echo "$openssl_location" outln " (built: \"$OSSL_BUILD_DATE\", platform: \"$OSSL_VER_PLATFORM\")\n" } @@ -4497,4 +4496,4 @@ fi exit $ret -# $Id: testssl.sh,v 1.320 2015/07/17 12:30:49 dirkw Exp $ +# $Id: testssl.sh,v 1.321 2015/07/17 12:58:11 dirkw Exp $