Fail the API check for lines starting with a single '-'. (#1787)

This commit is contained in:
Chris Rankin 2017-10-03 12:10:52 +01:00 committed by GitHub
parent f03699d1a3
commit c570f8c6eb

4
.ci/check-api-changes.sh Normal file → Executable file
View File

@ -11,7 +11,7 @@ fi
diffContents=`diff -u $apiCurrent ../build/api/api-corda-*.txt`
echo "Diff contents: "
echo "$diffContents"
removals=`echo "$diffContents" | grep "^-" | wc -l`
removals=`echo "$diffContents" | grep "^-\s" | wc -l`
echo "Number of API removals/changes: "$removals
echo "Exiting with exit code" $removals
exit $removals
exit $removals