Skip to content

Commit

Permalink
fixes an exception with multiple project results folders
Browse files Browse the repository at this point in the history
  • Loading branch information
naumenko-sa committed Feb 4, 2019
1 parent 933f002 commit dbd2692
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cre.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ function f_cleanup
cd $family

project_summary=`find final -name project-summary.yaml`

# if there are multiple folders
n_summaries=`echo $project_summary | grep -o yaml | wc -l`
if [ $n_summaries -gt 1 ]
then
echo "Multiple project-summary.yaml"
exit 1
fi

echo "Project summary: " $project_summary

Expand Down

0 comments on commit dbd2692

Please sign in to comment.