Fix inclusion of Dockerfile examples

This commit is contained in:
J0WI 2018-02-14 02:44:38 +01:00
parent 8281ad1663
commit cca560535d

View File

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