From 785a15df74717caa5692ac7ef6f7131d2fe608cf Mon Sep 17 00:00:00 2001 From: TBF + Partner AG <118551945+tbfpartner@users.noreply.github.com> Date: Tue, 19 Nov 2024 23:53:50 +0100 Subject: [PATCH] fix-check_2_8 --- 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 000381fd..0a359ca3 100644 --- a/tests/2_docker_daemon_configuration.sh +++ b/tests/2_docker_daemon_configuration.sh @@ -182,7 +182,7 @@ check_2_8() { local check="$id - $desc" starttestjson "$id" "$desc" - if [[ $(get_docker_configuration_file_args 'default-ulimits' | grep -v '{}') ]] && [[ $(get_docker_configuration_file_args 'default-ulimits' | grep -v '{}') != "null" ]] ; then + if [ "$(get_docker_configuration_file_args 'default-ulimits')" != "" ] && [ "$(get_docker_configuration_file_args 'default-ulimits' | grep -v '{}')" ]; then pass -c "$check" logcheckresult "PASS" return