Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Commit

Permalink
Merge pull request #124 from upbound/required-images-optional
Browse files Browse the repository at this point in the history
Local dev: Fix unbound variable if required images not set
  • Loading branch information
lukeweber authored Oct 26, 2020
2 parents 3c47eae + b9fdc36 commit 23a8f54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/localdev-deploy-component.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ if [ "${LOCALDEV_LOCAL_BUILD}" == "true" ] && containsElement "${HELM_CHART_NAME
for r in "${registries_arr[@]}"; do
for i in "${images_arr[@]}"; do
for a in "${image_archs_arr[@]}"; do
if containsElement "${r}/${i}" "${REQUIRED_IMAGES[@]}"; then
if containsElement "${r}/${i}" ${REQUIRED_IMAGES[@]+"${REQUIRED_IMAGES[@]}"}; then
echo_info "Tagging locally built image as ${r}/${i}:${VERSION}"
docker tag "${BUILD_REGISTRY}/${i}-${a}" "${r}/${i}:${VERSION}"
fi
Expand Down

0 comments on commit 23a8f54

Please sign in to comment.