mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-04 10:47:25 +00:00
make update: Use a shell array instead of string
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user