Merge pull request #508 from QuentinServais/fix/check_2_7_TLS

Fix check_2_7 TLS  check with json config
This commit is contained in:
Thomas Sjögren 2023-02-02 11:49:10 +01:00 committed by GitHub
commit 75ccbc78a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -154,7 +154,7 @@ check_2_7() {
local check="$id - $desc"
starttestjson "$id" "$desc"
if [ $(grep -E "host.*tcp://" "$CONFIG_FILE") ] || \
if $(grep -qE "host.*tcp://" "$CONFIG_FILE") || \
[ $(get_docker_cumulative_command_line_args '-H' | grep -vE '(unix|fd)://') > /dev/null 2>&1 ]; then
if [ $(get_docker_configuration_file_args '"tlsverify":' | grep 'true') ] || \
[ $(get_docker_cumulative_command_line_args '--tlsverify' | grep 'tlsverify') >/dev/null 2>&1 ]; then