rancher-partner-charts/scripts/clean

9 lines
182 B
Bash
Executable File

#!/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
fi
fi
done