Files
litmus-hub/scripts/combine_all_cr.sh
2020-08-22 17:53:02 +05:30

15 lines
560 B
Bash

directories=$(find ./charts -maxdepth 1 -mindepth 1 -type d)
for directory in $directories
do
subDirectories=$(find $directory -maxdepth 1 -mindepth 1 -type d)
echo -e "---\n" > $directory/experiments.yaml
for subDirectory in $subDirectories
do
if test -f "$subDirectory/experiment.yaml"; then
cat $subDirectory/experiment.yaml >> $directory/experiments.yaml
echo -e "\n---\n" >> $directory/experiments.yaml
fi
done
echo "validating combine charts for "$directory
cat $directory/experiments.yaml
done