Account for: ./generate-stackbrew-library.sh: line 126: variantAliases[@]: unbound variable

This commit is contained in:
Tianon Gravi 2017-12-12 17:55:00 -08:00
parent e1dd0a7e1f
commit df1c388d3a

View File

@ -123,7 +123,7 @@ for version in "${versions[@]}"; do
elif [ "$suite" != "$versionSuite" ]; then elif [ "$suite" != "$versionSuite" ]; then
variantAliases=() variantAliases=()
fi fi
variantAliases=( "${suiteVariantAliases[@]}" "${variantAliases[@]}" ) variantAliases=( "${suiteVariantAliases[@]}" ${variantAliases[@]+"${variantAliases[@]}"} )
variantAliases=( "${variantAliases[@]//latest-/}" ) variantAliases=( "${variantAliases[@]//latest-/}" )
variantParent="$(awk 'toupper($1) == "FROM" { print $2 }' "$dir/Dockerfile")" variantParent="$(awk 'toupper($1) == "FROM" { print $2 }' "$dir/Dockerfile")"