Skip to content

Commit

Permalink
rebuildStats: if changes file does not exist, don't exit rearly and n…
Browse files Browse the repository at this point in the history
…ot check for userGuide.
  • Loading branch information
michaelDCurran committed Jul 18, 2024
1 parent b4cb18b commit 21c9fa1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/rebuildStats.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ lang=$(basename `pwd`)
nextRev=`ls -1 changes-newRevisions/ | head -n 1`
if [ "$nextRev" == "" ]; then
echo "No revision found, unable to calculate changes structure difference."
exit
else
python3 ${scriptsDir}/structDiffMd.py $lang changes-newRevisions/$nextRev/changes.md changes.md changes-structureDifferences.txt
fi
python3 ${scriptsDir}/structDiffMd.py $lang changes-newRevisions/$nextRev/changes.md changes.md changes-structureDifferences.txt

nextRev=`ls -1 userGuide-newRevisions/ | head -n 1`
if [ "$nextRev" == "" ]; then
echo "No revision found, unable to calculate userGuide structure difference."
exit
else
python3 ${scriptsDir}/structDiffMd.py $lang userGuide-newRevisions/$nextRev/userGuide.md userGuide.md userGuide-structureDifferences.txt
fi
python3 ${scriptsDir}/structDiffMd.py $lang userGuide-newRevisions/$nextRev/userGuide.md userGuide.md userGuide-structureDifferences.txt

0 comments on commit 21c9fa1

Please sign in to comment.