Skip to content

Commit 9dc5df0

Browse files
author
Cecile Robert-Michon
committed
fix unbound AZURE_CREDENTIALS var error
1 parent 43d7f6e commit 9dc5df0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hack/create-dev-cluster.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ set -o nounset
1818
set -o pipefail
1919

2020
# for Prow we use the provided AZURE_CREDENTIALS file
21-
if [[ -n "${AZURE_CREDENTIALS}" ]]; then
21+
if [[ -n "${AZURE_CREDENTIALS:-}" ]]; then
2222
export AZURE_SUBSCRIPTION_ID="$(cat ${AZURE_CREDENTIALS} | grep SubscriptionID | cut -d '=' -f 2)"
2323
export AZURE_TENANT_ID="$(cat ${AZURE_CREDENTIALS} | grep TenantID | cut -d '=' -f 2)"
2424
export AZURE_CLIENT_ID="$(cat ${AZURE_CREDENTIALS} | grep ClientID | cut -d '=' -f 2)"

0 commit comments

Comments
 (0)