Skip to content

Commit 11e9a04

Browse files
authored
fix ordering of arches (adoptium#570)
1 parent d241356 commit 11e9a04

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dockerhub_doc_config_update.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,14 @@ function generate_official_image_arches() {
131131
arches="windows-amd64"
132132
else
133133
# shellcheck disable=SC2046,SC2005,SC1003,SC2086,SC2063
134-
arches=$(echo $(grep ') \\' ${file} | grep -v "*" | sed 's/) \\//g; s/|//g' | sort) | sed 's/ /, /g')
134+
arches=$(echo $(grep ') \\' ${file} | grep -v "*" | sed 's/) \\//g; s/|//g'))
135135
arches=$(echo ${arches} | sed 's/x86_64/amd64/g') # replace x86_64 with amd64
136136
arches=$(echo ${arches} | sed 's/ppc64el/ppc64le/g') # replace ppc64el with ppc64le
137137
arches=$(echo ${arches} | sed 's/arm64/arm64v8/g') # replace arm64 with arm64v8
138138
arches=$(echo ${arches} | sed 's/aarch64/arm64v8/g') # replace aarch64 with arm64v8
139139
arches=$(echo ${arches} | sed 's/armhf/arm32v7/g') # replace armhf with arm32v7
140+
# sort arches alphabetically
141+
arches=$(echo ${arches} | tr ' ' '\n' | sort | tr '\n' ' ' | sed 's/ /, /g' | sed 's/, $//')
140142
fi
141143
}
142144

0 commit comments

Comments
 (0)