generate_architecture: find portable

This commit is contained in:
Daniel Black 2024-05-30 14:17:59 +10:00
parent 699b21b8a5
commit 132b45b326

View File

@ -12,7 +12,7 @@ _generateParentRepoToArches() {
local officialImagesUrl='https://github.com/docker-library/official-images/raw/master/library/'
eval "declare -g -A parentRepoToArches=( $(
find -name 'Dockerfile' -exec awk '
find . -name 'Dockerfile' -exec awk '
toupper($1) == "FROM" && $2 !~ /^('"$repo"'|scratch|.*\/.*)(:|$)/ {
print "'"$officialImagesUrl"'" $2
}