Skip to content

Commit 81f17ba

Browse files
committed
Declare global array
1 parent 6ca83d9 commit 81f17ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generate-stackbrew-library.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ getArches() {
4141
local repo="$1"; shift
4242
local officialImagesUrl='https://github.com/docker-library/official-images/raw/master/library/'
4343

44-
eval "declare -A -g parentRepoToArches=( $(
44+
eval "declare -g -A parentRepoToArches=( $(
4545
find -name 'Dockerfile' -exec awk '
4646
toupper($1) == "FROM" && $2 !~ /^('"$repo"'|scratch|microsoft\/[^:]+)(:|$)/ {
4747
print "'"$officialImagesUrl"'" $2

0 commit comments

Comments
 (0)