summary refs log tree commit diff
path: root/scripts-dev/check-newsfragment
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2019-03-25 16:48:56 +0000
committerRichard van der Hoff <richard@matrix.org>2019-03-25 16:48:56 +0000
commitce0ce1add3dde3da2ff366ee873174f5b5e70763 (patch)
tree8573d760dbaa68676e95e18698639537e75d75b2 /scripts-dev/check-newsfragment
parentMerge branch 'develop' of github.com:matrix-org/synapse into matrix-org-hotfixes (diff)
parentFix ClientReplicationStreamProtocol.__str__ (#4929) (diff)
downloadsynapse-ce0ce1add3dde3da2ff366ee873174f5b5e70763.tar.xz
Merge branch 'develop' into matrix-org-hotfixes
Diffstat (limited to 'scripts-dev/check-newsfragment')
-rwxr-xr-xscripts-dev/check-newsfragment4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts-dev/check-newsfragment b/scripts-dev/check-newsfragment

index e0ac84198e..0ec5075e79 100755 --- a/scripts-dev/check-newsfragment +++ b/scripts-dev/check-newsfragment
@@ -31,8 +31,8 @@ echo # check that any new newsfiles on this branch end with a full stop. for f in `git diff --name-only FETCH_HEAD... -- changelog.d`; do lastchar=`tr -d '\n' < $f | tail -c 1` - if [ $lastchar != '.' ]; then - echo -e "\e[31mERROR: newsfragment $f does not end with a '.'\e[39m" >&2 + if [ $lastchar != '.' -a $lastchar != '!' ]; then + echo -e "\e[31mERROR: newsfragment $f does not end with a '.' or '!'\e[39m" >&2 exit 1 fi done