mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-19 18:02:01 +00:00
make update: Use a shell array instead of string
This commit is contained in:
parent
d2504c94a0
commit
db1f27896f
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user