diff --git a/Makefile.am b/Makefile.am index cea264acf273..5545cd67328e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -55,7 +55,7 @@ shellcheck: shellcheck --exclude=SC1090 --format gcc scripts/paxcheck.sh \ scripts/zloop.sh \ scripts/zfs-tests.sh \ - scripts/zfs.sh; \ + scripts/zfs.sh \ scripts/commitcheck.sh; \ (find cmd/zed/zed.d/*.sh -type f) | \ grep -v 'zfs-script-config' | \ diff --git a/scripts/commitcheck.sh b/scripts/commitcheck.sh index 723109112b60..13043bb568f8 100755 --- a/scripts/commitcheck.sh +++ b/scripts/commitcheck.sh @@ -16,7 +16,7 @@ function test_url() # check for a tagged line function check_tagged_line() { - regex='^\s*'"$1"':\s+\S+\s+\<\S+\>' + regex='^\s*'"$1"':\s[-A-Za-z0-9 ]+\s<\S+>$' foundline=$(git log -n 1 "$REF" | egrep -m 1 "$regex") if [ -z "$foundline" ]; then echo "error: missing \"$1\"" @@ -29,7 +29,7 @@ function check_tagged_line() # check for a tagged line and check that the link is valid function check_tagged_line_with_url () { - regex='^\s*'"$1"':\s+\K(\S+)' + regex='^\s*'"$1"':\s\K(\S+)$' foundline=$(git log -n 1 "$REF" | grep -Po "$regex") if [ -z "$foundline" ]; then echo "error: missing \"$1\""