diff --git a/tools/generate-dockerhub.sh b/tools/generate-dockerhub.sh index b1cd7cd..8ce4ab5 100644 --- a/tools/generate-dockerhub.sh +++ b/tools/generate-dockerhub.sh @@ -9,8 +9,8 @@ major=${1:0:1} minor=${1:2:1} usage() { - printf "%s: RELEASE TYPE [DATE]\n\n" $0 - log "$1" + printf "%s: RELEASE TYPE [DATE]\n\n" $0 + log "$1" } # shellcheck disable=SC2046,1091,1090 @@ -21,27 +21,29 @@ name="Rocky-${version}.${date}-${type}" arches=(x86_64 aarch64) set -x if [[ $major -ge 9 ]]; then - arches=(${arches[@]} s390x ppc64le) + arches=(${arches[@]} s390x ppc64le) fi -case $type in - UBI|Minimal) - suffix="-${type,,}" ;; - *) - suffix='';; +case $type in +UBI | Minimal) + suffix="-${type,,}" + ;; +*) + suffix='' + ;; esac declare -A shasums for a in "${arches[@]}"; do - pt="${name}-${a}" - if has-branch $pt; then - shasums[$a]="$(git rev-parse $pt)" - fi + pt="${name}-${a}" + if has-branch $pt; then + shasums[$a]="$(git rev-parse $pt)" + fi done cat <