Skip to content

Commit ef524a4

Browse files
committed
fix ZONE parameter
1 parent d09a879 commit ef524a4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

auth-gke.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
set -euo pipefail
33

44
main() {
5-
_trace gcloud container clusters get-credentials "$CLUSTER" --project "$PROJECT" --zone "${LOCATION:-$ZONE}"
5+
_trace gcloud container clusters get-credentials "$CLUSTER" --project "$PROJECT" --zone "${LOCATION:-${ZONE:-}}"
66
}
77

8-
98
# Display the underlying command
109
_trace() {
1110
cmd=($@)

0 commit comments

Comments
 (0)