mirror of
https://github.com/corda/corda.git
synced 2025-01-18 02:39:51 +00:00
Fail the API check for lines starting with a single '-'. (#1787)
This commit is contained in:
parent
f03699d1a3
commit
c570f8c6eb
4
.ci/check-api-changes.sh
Normal file → Executable file
4
.ci/check-api-changes.sh
Normal file → Executable 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
|
||||
|
Loading…
Reference in New Issue
Block a user