Skip to content

Commit 20aeeed

Browse files
committed
Replace for loop with find command
Signed-off-by: Joakim Roubert <[email protected]>
1 parent 1b8107d commit 20aeeed

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

build/lib/release.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -458,10 +458,7 @@ function kube::release::package_kube_manifests_tarball() {
458458
cp "${src_dir}/kube-addon-manager.yaml" "${dst_dir}"
459459
cp "${src_dir}/glbc.manifest" "${dst_dir}"
460460
cp "${src_dir}/etcd-empty-dir-cleanup.yaml" "${dst_dir}/"
461-
local internal_manifest
462-
for internal_manifest in "${src_dir}/internal-"*; do
463-
cp "${internal_manifest}" "${dst_dir}"
464-
done
461+
find "${src_dir}" -name 'internal-*' -exec cp {} "${dst_dir}" \;
465462
cp "${KUBE_ROOT}/cluster/gce/gci/configure-helper.sh" "${dst_dir}/gci-configure-helper.sh"
466463
cp "${KUBE_ROOT}/cluster/gce/gci/configure-kubeapiserver.sh" "${dst_dir}/configure-kubeapiserver.sh"
467464
if [ -e "${KUBE_ROOT}/cluster/gce/gci/gke-internal-configure-helper.sh" ]; then

0 commit comments

Comments
 (0)