mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-01 06:19:44 +01:00
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.
This commit is contained in:
parent
a9f4bb5fb5
commit
5439985dbe
@ -19195,7 +19195,7 @@ find_socat() {
|
|||||||
if [[ $? -ne 0 ]]; then
|
if [[ $? -ne 0 ]]; then
|
||||||
return 1
|
return 1
|
||||||
else
|
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
|
SOCAT=$result
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user