make update: Use a shell array instead of string

This commit is contained in:
Tim Hockin 2022-11-23 16:30:00 -08:00
parent d2504c94a0
commit db1f27896f
No known key found for this signature in database

View File

@ -35,7 +35,7 @@ if ! ${ALL} ; then
echo "Running in short-circuit mode; run with FORCE_ALL=true to force all scripts to run." echo "Running in short-circuit mode; run with FORCE_ALL=true to force all scripts to run."
fi fi
BASH_TARGETS=" BASH_TARGETS=(
update-generated-protobuf update-generated-protobuf
update-codegen update-codegen
update-generated-runtime update-generated-runtime
@ -45,9 +45,10 @@ BASH_TARGETS="
update-generated-docs update-generated-docs
update-generated-swagger-docs update-generated-swagger-docs
update-openapi-spec 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:?}" echo -e "${color_yellow:?}Running ${t}${color_norm:?}"
if ${SILENT} ; then if ${SILENT} ; then
if ! bash "${KUBE_ROOT}/hack/${t}.sh" 1> /dev/null; then if ! bash "${KUBE_ROOT}/hack/${t}.sh" 1> /dev/null; then