From 3877abd97511288373bd8a0230558196aee35a79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Sj=C3=B6gren?= Date: Mon, 2 Nov 2020 09:26:20 +0100 Subject: [PATCH] print img if empty RepoTags, and fix tabbing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Sjögren --- tests/4_container_images.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/4_container_images.sh b/tests/4_container_images.sh index 485655e..2e3ce69 100644 --- a/tests/4_container_images.sh +++ b/tests/4_container_images.sh @@ -39,11 +39,11 @@ check_4_1() { if [ $fail -eq 0 ]; then warn "$check_4_1" warn " * Running as root: $c" - root_containers="$root_containers $c" + root_containers="$root_containers $c" fail=1 else warn " * Running as root: $c" - root_containers="$root_containers $c" + root_containers="$root_containers $c" fi fi done @@ -138,7 +138,10 @@ check_4_6() { imgName=$(docker inspect --format='{{.RepoTags}}' "$img" 2>/dev/null) if ! [ "$imgName" = '[]' ]; then warn " * No Healthcheck found: $imgName" - no_health_images="$no_health_images $imgName" + no_health_images="$no_health_images $imgName" + else + warn " * No Healthcheck found: $img" + no_health_images="$no_health_images $img" fi fi done @@ -171,7 +174,7 @@ check_4_7() { imgName=$(docker inspect --format='{{.RepoTags}}' "$img" 2>/dev/null) if ! [ "$imgName" = '[]' ]; then info " * Update instruction found: $imgName" - update_images="$update_images $imgName" + update_images="$update_images $imgName" fi fi done