From 65ab7040a7f0f00f4eab5ca4cf603a60e1cdd1a8 Mon Sep 17 00:00:00 2001 From: CJ Cullen Date: Wed, 29 Jun 2016 22:49:26 -0700 Subject: [PATCH] Make GKE detect-instance-groups work on Mac. --- cluster/gke/util.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster/gke/util.sh b/cluster/gke/util.sh index e0f57f49c25..eeb20bad790 100755 --- a/cluster/gke/util.sh +++ b/cluster/gke/util.sh @@ -318,7 +318,7 @@ function detect-node-instance-groups { ALL_INSTANCE_GROUP_URLS=${urls[*]} NODE_INSTANCE_GROUPS=() for url in "${urls[@]:-}"; do - local igm_zone=$(expr match ${url} '.*/zones/\([a-z0-9-]*\)/') + local igm_zone=$(expr ${url} : '.*/zones/\([a-z0-9-]*\)/') if [[ "${igm_zone}" == "${ZONE}" ]]; then NODE_INSTANCE_GROUPS+=("${url##*/}") fi