From ee718c40c0150b90aa7eda0230d233d8f7b1273c Mon Sep 17 00:00:00 2001 From: QuentinServais <64021670+QuentinServais@users.noreply.github.com> Date: Tue, 27 Dec 2022 23:39:17 +0100 Subject: [PATCH] Fix check_2_7 TLS check with json config --- tests/2_docker_daemon_configuration.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/2_docker_daemon_configuration.sh b/tests/2_docker_daemon_configuration.sh index bb5f47d..cc187d6 100644 --- a/tests/2_docker_daemon_configuration.sh +++ b/tests/2_docker_daemon_configuration.sh @@ -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