Skip to content

Commit e559b43

Browse files
committed
Fix rm glob expansion
Currently `rm` does not work as expected because `*` glob is not being expanded.
1 parent e370e1f commit e559b43

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.githooks/pre-commit

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ function generate_standalone_yaml() {
4545
cat "helm_chart/crds/"* >public/crds.yaml
4646

4747
# generate openshift public example
48-
rm -rf "${charttmpdir:?}/*"
48+
rm -rf "${charttmpdir:?}"/*
4949
helm template --namespace mongodb -f helm_chart/values.yaml helm_chart --output-dir "${charttmpdir}" --values helm_chart/values-openshift.yaml ${HELM_OPTS[@]}
5050
cat "${FILES[@]}" >public/mongodb-kubernetes-openshift.yaml
5151

5252
# generate openshift files for kustomize used for generating OLM bundle
53-
rm -rf "${charttmpdir:?}/*"
53+
rm -rf "${charttmpdir:?}"/*
5454
helm template --namespace mongodb -f helm_chart/values.yaml helm_chart --output-dir "${charttmpdir}" --values helm_chart/values-openshift.yaml \
5555
--set operator.webhook.registerConfiguration=false --set operator.webhook.installClusterRole=false ${HELM_OPTS[@]}
5656

@@ -60,7 +60,7 @@ function generate_standalone_yaml() {
6060
cp "${charttmpdir}/mongodb-kubernetes/templates/operator-roles.yaml" config/rbac/operator-roles.yaml
6161

6262
# generate multi-cluster public example
63-
rm -rf "${charttmpdir:?}/*"
63+
rm -rf "${charttmpdir:?}"/*
6464
helm template --namespace mongodb -f helm_chart/values.yaml helm_chart --output-dir "${charttmpdir}" --values helm_chart/values-multi-cluster.yaml ${HELM_OPTS[@]}
6565
cat "${FILES[@]}" >public/mongodb-kubernetes-multi-cluster.yaml
6666

0 commit comments

Comments
 (0)