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 <jammasterj89@gmail.com>
This commit is contained in:
jammasterj89 2019-07-30 11:25:18 +01:00 committed by Niall T
parent 6cd952c7a1
commit e1d26673ee

View file

@ -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"