Make GKE detect-instance-groups work on Mac.

This commit is contained in:
CJ Cullen 2016-06-29 22:49:26 -07:00
parent d8d5ab29a5
commit 65ab7040a7

View File

@ -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