rke2-charts/scripts/clean

10 lines
207 B
Plaintext
Raw Normal View History

2020-08-07 00:18:05 +00:00
#!/usr/bin/env bash
for f in packages/*; do
if [[ -f ${f}/package.yaml ]]; then
if [[ -z $CHART || $CHART == $(basename -- ${f}) ]]; then
rm -rf ${f}/charts
rm -rf ${f}/charts-crd
fi
fi
done