diff --git a/generate-stackbrew-library.sh b/generate-stackbrew-library.sh index a68081c9..b2a8d767 100755 --- a/generate-stackbrew-library.sh +++ b/generate-stackbrew-library.sh @@ -43,7 +43,7 @@ getArches() { eval "declare -g -A parentRepoToArches=( $( find -maxdepth 3 -name 'Dockerfile' -exec awk ' toupper($1) == "FROM" && $2 !~ /^('"$repo"'|scratch|microsoft\/[^:]+)(:|$)/ { - print "'"$officialImagesUrl"'" $2 + split($2,x,":"); print "'"$officialImagesUrl"'" x[1] } ' '{}' + \ | sort -u \