Skip to content

Commit 5439985

Browse files
committed
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.
1 parent a9f4bb5 commit 5439985

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testssl.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19195,7 +19195,7 @@ find_socat() {
1919519195
if [[ $? -ne 0 ]]; then
1919619196
return 1
1919719197
else
19198-
if [[ -x $result ]] && $result -V | grep -iaq 'socat version' ; then
19198+
if [[ -x $result ]] && $result -V 2>&1 | grep -iaq 'socat version' ; then
1919919199
SOCAT=$result
1920019200
return 0
1920119201
fi

0 commit comments

Comments
 (0)