grep actually doesn't normally know \t, but [:blank:] is [ \t]

Change-Id: Ie9bf8ea60f1c0595aa3ac2e0f9b3e6505af30e6c
This commit is contained in:
Luboš Luňák 2013-03-01 19:31:56 +01:00
parent 86b49aa44e
commit b3553246c6

View file

@ -35,7 +35,7 @@ test "" = "$(grep '^Signed-off-by: ' "$1" |
# Check that the first line exists, and is not an asterisk
if [ -z "`head -n 1 $1 | grep -v '^[ \t]*\*$'`" ] ; then
if [ -z "`head -n 1 $1 | grep -v '^[[:blank:]]*\*$'`" ] ; then
abort "$1" "Please provide the general description on the first line."
fi