From 41e0be195891b565b4044030b3e1e37221846919 Mon Sep 17 00:00:00 2001 From: Chris Rankin Date: Mon, 6 Nov 2017 11:54:48 +0000 Subject: [PATCH] Exit code is between 0-255. So protect against VERY unlikey chance of overflow. (#2000) --- .ci/check-api-changes.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.ci/check-api-changes.sh b/.ci/check-api-changes.sh index 72ae5f9d805..987d0ced3c5 100755 --- a/.ci/check-api-changes.sh +++ b/.ci/check-api-changes.sh @@ -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