Fix check_2_7 TLS check with json config

This commit is contained in:
QuentinServais 2022-12-27 23:39:17 +01:00 committed by GitHub
parent 5a8d6434e6
commit ee718c40c0
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