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 @@ -44,17 +44,19 @@ dirCommit() {
4444
4545getArches () {
4646 local repo=" $1 " ; shift
47- local officialImagesUrl= ' https://github.com/docker-library/official-images/raw/master /library/ '
47+ local officialImagesBase= " ${BASHBREW_LIBRARY :- https:// github.com/ docker-library/ official-images/ raw/ HEAD / library} / "
4848
49- eval " declare -g -A parentRepoToArches=( $(
50- find -name ' Dockerfile' -exec awk '
49+ local parentRepoToArchesStr
50+ parentRepoToArchesStr=" $(
51+ find -name ' Dockerfile' -exec awk -v officialImagesBase=" $officialImagesBase " '
5152 toupper($1) == "FROM" && $2 !~ /^(' " $repo " ' |scratch|.*\/.*)(:|$)/ {
52- print " ' " $officialImagesUrl " ' " $2
53+ printf "%s%s\n", officialImagesBase, $2
5354 }
5455 ' ' {}' + \
5556 | sort -u \
56- | xargs bashbrew cat --format ' [{{ .RepoName }}:{{ .TagName }}]="{{ join " " .TagEntry.Architectures }}"'
57- ) )"
57+ | xargs -r bashbrew cat --format ' ["{{ .RepoName }}:{{ .TagName }}"]="{{ join " " .TagEntry.Architectures }}"'
58+ ) "
59+ eval " declare -g -A parentRepoToArches=( $parentRepoToArchesStr )"
5860}
5961getArches ' postgres'
6062
You can’t perform that action at this time.
0 commit comments