From db1f27896f52af17dc7ad63c31e1a5a28e504f5f Mon Sep 17 00:00:00 2001 From: Tim Hockin Date: Wed, 23 Nov 2022 16:30:00 -0800 Subject: [PATCH] make update: Use a shell array instead of string --- hack/make-rules/update.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hack/make-rules/update.sh b/hack/make-rules/update.sh index 447fc6624c8..a1ea51ce530 100755 --- a/hack/make-rules/update.sh +++ b/hack/make-rules/update.sh @@ -35,7 +35,7 @@ if ! ${ALL} ; then echo "Running in short-circuit mode; run with FORCE_ALL=true to force all scripts to run." fi -BASH_TARGETS=" +BASH_TARGETS=( update-generated-protobuf update-codegen update-generated-runtime @@ -45,9 +45,10 @@ BASH_TARGETS=" update-generated-docs update-generated-swagger-docs update-openapi-spec - update-gofmt" + update-gofmt +) -for t in ${BASH_TARGETS}; do +for t in "${BASH_TARGETS[@]}"; do echo -e "${color_yellow:?}Running ${t}${color_norm:?}" if ${SILENT} ; then if ! bash "${KUBE_ROOT}/hack/${t}.sh" 1> /dev/null; then