Merge pull request #1813 from drwetter/file_exec_fix

Fixes the search for a non-executable socat binary
This commit is contained in:
Dirk Wetter 2021-01-05 15:27:40 +01:00 committed by GitHub
commit b8b23b94df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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