diff --git a/.ci/check-api-changes.sh b/.ci/check-api-changes.sh old mode 100644 new mode 100755 index a4273b9429..dd7d8efd60 --- a/.ci/check-api-changes.sh +++ b/.ci/check-api-changes.sh @@ -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 \ No newline at end of file +exit $removals