Fix unbound variable issue (set -e).

This commit is contained in:
David McMahon 2016-08-19 13:46:00 -07:00
parent 2b18f37232
commit 3c4f7491c9

View File

@ -79,8 +79,8 @@ elif ${RELEASE_INFRA_PUSH-}; then
exit 1
fi
[[ -n "$KUBE_GCS_RELEASE_BUCKET" ]] \
&& bucket_flag="--bucket=$KUBE_GCS_RELEASE_BUCKET"
[[ -n "${KUBE_GCS_RELEASE_BUCKET-}" ]] \
&& bucket_flag="--bucket=${KUBE_GCS_RELEASE_BUCKET-}"
${FEDERATION} && federation_flag="--federation"
${SET_NOMOCK_FLAG} && mock_flag="--nomock"
${release_infra_clone}/push-ci-build.sh ${bucket_flag-} ${federation_flag-} \