Fix operator

This should actually use OR instead of AND

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
Matthias Beyer 2019-07-27 00:39:07 +02:00
parent 5ec1a8a2d4
commit 121124b3ae

View file

@ -13,6 +13,7 @@
. git-sh-setup . git-sh-setup
GREEN='\e[0;32m' # Green
RED='\e[0;31m' # Red RED='\e[0;31m' # Red
YELLOW='\e[0;33m' # Yellow YELLOW='\e[0;33m' # Yellow
NORMAL='\e[0m' # Text Reset NORMAL='\e[0m' # Text Reset
@ -29,5 +30,5 @@ abort() {
headline=$(head -n 1 $1 | wc -c) headline=$(head -n 1 $1 | wc -c)
[[ $headline -gt 50 ]] && warn "Headline of patch longer than 50 chars" [[ $headline -gt 50 ]] && warn "Headline of patch longer than 50 chars"
grep "^Signed-off-by" $1 >/dev/null 2>/dev/null && abort "No Signed-off-by line" grep -q "^Signed-off-by" $1 || abort "No Signed-off-by line"