From 5439985dbeb5dd57f3e239349abb5fda3063b896 Mon Sep 17 00:00:00 2001 From: Dirk Wetter Date: Tue, 5 Jan 2021 15:25:28 +0100 Subject: [PATCH] Fixes the search for a non-executable socat binary ... otherwise there wwould be an ugly screen output. This commit squashes the error message on the screen. --- testssl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testssl.sh b/testssl.sh index 38c4f0c..53f05a8 100755 --- a/testssl.sh +++ b/testssl.sh @@ -19195,7 +19195,7 @@ find_socat() { if [[ $? -ne 0 ]]; then return 1 else - if [[ -x $result ]] && $result -V | grep -iaq 'socat version' ; then + if [[ -x $result ]] && $result -V 2>&1 | grep -iaq 'socat version' ; then SOCAT=$result return 0 fi