17 lines
374 B
Bash
Executable File
17 lines
374 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
patch_url=$1
|
|
|
|
file=mirror.txt
|
|
|
|
cp "${file}" "${file}.bak"
|
|
|
|
git apply -R <(curl -fsSL "${patch_url}")
|
|
|
|
list=$(diff --unified "${file}" "${file}.bak" | grep -E '^+\w' | sed 's/^+//' || :)
|
|
|
|
for image in ${list}; do
|
|
echo "Checking image: ${image}"
|
|
skopeo list-tags --retry-times 3 "docker://${image}" || { echo "Not Found ${image}" ; exit 1; }
|
|
done
|