From e1d26673eefe26677d8e2337426dce27fc8dfe97 Mon Sep 17 00:00:00 2001 From: jammasterj89 Date: Tue, 30 Jul 2019 11:25:18 +0100 Subject: [PATCH] Remove check_images Removed check_images due to removal of -t parameter and $images being set in docker-bench-security.sh Signed-off-by: Niall T --- tests/4_container_images.sh | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/tests/4_container_images.sh b/tests/4_container_images.sh index 954512d..c6e68f4 100644 --- a/tests/4_container_images.sh +++ b/tests/4_container_images.sh @@ -1,22 +1,5 @@ #!/bin/sh -check_images() { -if [ -n "$imgList" ]; then - pattern=$(echo "$imgList" | sed 's/,/ /g') - for img in $pattern; do - echo "Looking for image $img" - sha256=$(docker images | grep $img | awk '{print $3}') - if [ -z "$sha256" ]; then - echo "Image $img not found. Exiting." - exit 1 - fi - images="$sha256" - echo "images ------------------------------------ " $images - echo "sha356" $sha256 - done -fi -} - check_4() { logit "\n" id_4="4"