diff --git a/cluster/validate-cluster.sh b/cluster/validate-cluster.sh index a3affc8606..81d75ef8d0 100755 --- a/cluster/validate-cluster.sh +++ b/cluster/validate-cluster.sh @@ -31,7 +31,7 @@ trap 'rm -rf "${MINIONS_FILE}"' EXIT attempt=0 while true; do "${KUBE_ROOT}/cluster/kubectl.sh" get nodes -o template -t $'{{range.items}}{{.metadata.name}}\n{{end}}' --api-version=v1beta3 > "${MINIONS_FILE}" - found=$(grep -c . "${MINIONS_FILE}") + found=$(grep -c . "${MINIONS_FILE}") || true if [[ ${found} == "${NUM_MINIONS}" ]]; then break else