File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -37,17 +37,19 @@ dirCommit() {
3737
3838getArches () {
3939 local repo=" $1 " ; shift
40- local officialImagesUrl= ' https://github.com/docker-library/official-images/raw/master /library/ '
40+ local officialImagesBase= " ${BASHBREW_LIBRARY :- https:// github.com/ docker-library/ official-images/ raw/ HEAD / library} / "
4141
42- eval " declare -g -A parentRepoToArches=( $(
43- find -name ' Dockerfile' -exec awk '
42+ local parentRepoToArchesStr
43+ parentRepoToArchesStr=" $(
44+ find -name ' Dockerfile' -exec awk -v officialImagesBase=" $officialImagesBase " '
4445 toupper($1) == "FROM" && $2 !~ /^(' " $repo " ' |scratch|.*\/.*)(:|$)/ {
45- print " ' " $officialImagesUrl " ' " $2
46+ printf "%s%s\n", officialImagesBase, $2
4647 }
4748 ' ' {}' + \
4849 | sort -u \
49- | xargs bashbrew cat --format ' [{{ .RepoName }}:{{ .TagName }}]="{{ join " " .TagEntry.Architectures }}"'
50- ) )"
50+ | xargs -r bashbrew cat --format ' ["{{ .RepoName }}:{{ .TagName }}"]="{{ join " " .TagEntry.Architectures }}"'
51+ ) "
52+ eval " declare -g -A parentRepoToArches=( $parentRepoToArchesStr )"
5153}
5254getArches ' memcached'
5355
You can’t perform that action at this time.
0 commit comments