scripts: fix commit check for empty list
When running check-git-log.sh on a clean tree it was complaining of a wrong empty headline because '^[^:]*$' was matching. It is fixed by matching at least one character with +. Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
This commit is contained in:
parent
ecb9eb2927
commit
48660cab92
@ -63,7 +63,7 @@ bad=$(echo "$headlines" | grep --color=always \
|
|||||||
-e '\.$' \
|
-e '\.$' \
|
||||||
-e '[,;!?&|]' \
|
-e '[,;!?&|]' \
|
||||||
-e ':.*_' \
|
-e ':.*_' \
|
||||||
-e '^[^:]*$' \
|
-e '^[^:]\+$' \
|
||||||
-e ':[^ ]' \
|
-e ':[^ ]' \
|
||||||
-e ' :' \
|
-e ' :' \
|
||||||
| sed 's,^,\t,')
|
| sed 's,^,\t,')
|
||||||
|
Loading…
Reference in New Issue
Block a user