mirror of
https://github.com/corda/corda.git
synced 2025-02-20 17:33:15 +00:00
Exit code is between 0-255. So protect against VERY unlikey chance of overflow. (#2000)
This commit is contained in:
parent
00a9014852
commit
41e0be1958
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user