Merge pull request from jammasterj89/master

Issue  ability to exclude images
Closes , 
This commit is contained in:
Thomas Sjögren 2019-08-29 15:10:53 +02:00 committed by GitHub
commit d1934b614e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 22 deletions

View file

@ -1,20 +1,5 @@
#!/bin/sh
if [ -n "$imgList" ]; then
pattern=$(echo "$imgList" | sed 's/,/ /g')
for img in $pattern; do
echo "Looking for image $img"
sha256=$(docker image ls "$img" -q)
if [ -z "$sha256" ]; then
echo "Image $img not found. Exiting."
exit 1
fi
images="$images $sha256 "
done
else
images=$(docker images -q)
fi
check_4() {
logit "\n"
id_4="4"