summaryrefslogtreecommitdiffstats
path: root/extras/scripts
diff options
context:
space:
mode:
authorJon Loeliger <jdl@netgate.com>2019-11-26 08:11:11 -0600
committerOle Trøan <otroan@employees.org>2020-01-03 10:11:41 +0000
commit171577e129363aec30640a50f91cf0ff46d61bb9 (patch)
tree8bde9d95777d171aa0f7cac258a690709d44d1ee /extras/scripts
parent87663cdf644fb7c94c0fec9460829b7e4e7c35ca (diff)
build: Fix Subject-line feature list extraction
Bang on sed until a better incantation appears. Change-Id: Ib8ad0996b6325db0fe983c86dd7dc553c9d388c4 Type: fix Fixes: 26ce6ca1fe6f524a9049444fe8d55042fd7530a6 Signed-off-by: Jon Loeliger <jdl@netgate.com>
Diffstat (limited to 'extras/scripts')
-rwxr-xr-xextras/scripts/check_commit_msg.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/extras/scripts/check_commit_msg.sh b/extras/scripts/check_commit_msg.sh
index 2cc63c5fbd1..4b72953c8f7 100755
--- a/extras/scripts/check_commit_msg.sh
+++ b/extras/scripts/check_commit_msg.sh
@@ -1,7 +1,8 @@
#/bin/env bash
KNOWN_FEATURES=$(cat MAINTAINERS | sed -ne 's/^I:[[:space:]]*//p')
-FEATURES=$(git show -s --format=%s --no-color | sed -e 's/\([a-z0-9 -]*\):.*/\1/')
+FEATURES=$(git show -s --format=%s --no-color \
+ | sed -ne 's/^\([a-z0-9 -]*\):.*$/\1/p')
KNOWN_TYPES="feature fix refactor style docs test make"
TYPE=$(git show -s --format=%b --no-color | sed -ne 's/^Type:[[:space:]]*//p')
ERR="=============================== ERROR ==============================="