diff --git a/generate-stackbrew-library.sh b/generate-stackbrew-library.sh index 7901d8d1..208c154c 100755 --- a/generate-stackbrew-library.sh +++ b/generate-stackbrew-library.sh @@ -123,7 +123,7 @@ for version in "${versions[@]}"; do elif [ "$suite" != "$versionSuite" ]; then variantAliases=() fi - variantAliases=( "${suiteVariantAliases[@]}" "${variantAliases[@]}" ) + variantAliases=( "${suiteVariantAliases[@]}" ${variantAliases[@]+"${variantAliases[@]}"} ) variantAliases=( "${variantAliases[@]//latest-/}" ) variantParent="$(awk 'toupper($1) == "FROM" { print $2 }' "$dir/Dockerfile")"