From de95a3344b4a2ba15bf0db239ce2902b184a42e1 Mon Sep 17 00:00:00 2001 From: h00130372 Date: Mon, 15 Apr 2019 09:47:26 +0800 Subject: [PATCH] Fix older bash failing on unbound array variables Older bash versions fail when trying to expand array variables when the array is empty. --- hack/local-up-cluster.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/local-up-cluster.sh b/hack/local-up-cluster.sh index 7415a7cef0..47da348582 100755 --- a/hack/local-up-cluster.sh +++ b/hack/local-up-cluster.sh @@ -671,7 +671,7 @@ function start_cloud_controller_manager { ${CONTROLPLANE_SUDO} "${EXTERNAL_CLOUD_PROVIDER_BINARY:-"${GO_OUT}/hyperkube" cloud-controller-manager}" \ --v="${LOG_LEVEL}" \ --vmodule="${LOG_SPEC}" \ - "${node_cidr_args[@]}" \ + "${node_cidr_args[@]:-}" \ --feature-gates="${FEATURE_GATES}" \ --cloud-provider="${CLOUD_PROVIDER}" \ --cloud-config="${CLOUD_CONFIG}" \