From: Andy Green Date: Mon, 14 May 2018 04:59:56 +0000 (+0800) Subject: devtools: provide more generic grep in git check X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=5831a2198ade05242535822e480e83692652e02d;p=dpdk.git devtools: provide more generic grep in git check On Fedora 28, every patch is faulted for "Wrong headline uppercase", because [A-Z] is not always case sensitive. Change to use [[:upper:]] Signed-off-by: Andy Green Tested-by: Ferruh Yigit --- diff --git a/devtools/check-git-log.sh b/devtools/check-git-log.sh index c601f6ae99..2542d9ee05 100755 --- a/devtools/check-git-log.sh +++ b/devtools/check-git-log.sh @@ -106,8 +106,8 @@ bad=$(echo "$headlines" | grep --color=always \ # check headline lowercase for first words bad=$(echo "$headlines" | grep --color=always \ - -e '^.*[A-Z].*:' \ - -e ': *[A-Z]' \ + -e '^.*[[:upper:]].*:' \ + -e ': *[[:upper:]]' \ | sed 's,^,\t,') [ -z "$bad" ] || printf "Wrong headline uppercase:\n$bad\n"