Skip to content

Commit

Permalink
Exit code is between 0-255. So protect against VERY unlikey chance of…
Browse files Browse the repository at this point in the history
… overflow. (corda#2000)
  • Loading branch information
chrisr3 authored Nov 6, 2017
1 parent 00a9014 commit 41e0be1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .ci/check-api-changes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ if [ $abstractCount -gt 0 ]; then
fi

badChanges=$(($removalCount + $abstractCount))
if [ $badChanges -gt 255 ]; then
echo "OVERFLOW! Number of bad API changes: $badChanges"
badChanges=255
fi

echo "Exiting with exit code" $badChanges
exit $badChanges

0 comments on commit 41e0be1

Please sign in to comment.