Fix verify-image (#59)

This commit is contained in:
Shiming Zhang 2022-01-18 17:01:35 +08:00 committed by GitHub
parent caa63893da
commit 694a84ff95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -8,8 +8,9 @@ cp "${file}" "${file}.bak"
git apply -R <(curl -fsSL "${patch_url}")
list=$(diff --unified "${file}" "${file}.bak" | grep -e '^+\w' | sed 's/^+//')
list=$(diff --unified "${file}" "${file}.bak" | grep -E '^+\w' | sed 's/^+//' || :)
for image in ${list}; do
skopeo inspect --raw "docker://${image}" || { echo "Not Found ${image}" ; exit 1; }
echo "Checking image: ${image}"
skopeo list-tags --retry-times 3 "docker://${image}" || { echo "Not Found ${image}" ; exit 1; }
done