Merge pull request #501 from konstruktoid/issue498

grep host* in config file before testing 2.7
This commit is contained in:
Thomas Sjögren 2022-05-23 11:31:04 +02:00 committed by GitHub
commit 44fdceb331
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -154,8 +154,8 @@ check_2_7() {
local check="$id - $desc"
starttestjson "$id" "$desc"
if [ $(get_docker_configuration_file_args 'tcp://') ] || \
[ $(get_docker_cumulative_command_line_args '-H' | grep -vE '(unix|fd)://') >/dev/null 2>&1 ]; then
if [ $(grep -E "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
pass -s "$check"