Commit 65ab7040 authored by CJ Cullen's avatar CJ Cullen

Make GKE detect-instance-groups work on Mac.

parent d8d5ab29
...@@ -318,7 +318,7 @@ function detect-node-instance-groups { ...@@ -318,7 +318,7 @@ function detect-node-instance-groups {
ALL_INSTANCE_GROUP_URLS=${urls[*]} ALL_INSTANCE_GROUP_URLS=${urls[*]}
NODE_INSTANCE_GROUPS=() NODE_INSTANCE_GROUPS=()
for url in "${urls[@]:-}"; do 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 if [[ "${igm_zone}" == "${ZONE}" ]]; then
NODE_INSTANCE_GROUPS+=("${url##*/}") NODE_INSTANCE_GROUPS+=("${url##*/}")
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment