hack/gen-test-flavors.sh: call grep only once
To make this lengthy command at least a bit shorter.
@@ -32,7 +32,7 @@ mkdir -p "${generated_dir}"
# Ignore non kustomized
find "${src_dir}"* -maxdepth 1 -type d \
- -print0 | xargs -0 -I {} basename {} | grep -v patches | grep -v addons | grep -v cni | grep -v base | xargs -t -I {} ${kustomize} build --load-restrictor LoadRestrictionsNone --reorder none ${src_dir}{} -o ${generated_dir}/cluster-template-{}.yaml
+ -print0 | xargs -0 -I {} basename {} | grep -v -E '(patches|addons|cni|base)' | xargs -t -I {} ${kustomize} build --load-restrictor LoadRestrictionsNone --reorder none ${src_dir}{} -o ${generated_dir}/cluster-template-{}.yaml
## move the default template to the default file expected by clusterctl
mv "${generated_dir}/cluster-template-default.yaml" "${generated_dir}/cluster-template.yaml"
