diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2019-07-27 00:39:07 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2019-07-28 12:53:41 +0200 |
commit | 121124b3ae936c5d6e007a6e3e5f60a975b6c8af (patch) | |
tree | f3d618e5ea7bd1608814771c2b974c32dc0b4831 /scripts | |
parent | 5ec1a8a2d4f55ecf1d3b98edb0467601ff79aac6 (diff) |
Fix operator
This should actually use OR instead of AND
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/hooks/applypatch-msg.check-signed-off.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/hooks/applypatch-msg.check-signed-off.sh b/scripts/hooks/applypatch-msg.check-signed-off.sh index 3cf81abb..875d1174 100644 --- a/scripts/hooks/applypatch-msg.check-signed-off.sh +++ b/scripts/hooks/applypatch-msg.check-signed-off.sh @@ -13,6 +13,7 @@ . git-sh-setup +GREEN='\e[0;32m' # Green RED='\e[0;31m' # Red YELLOW='\e[0;33m' # Yellow NORMAL='\e[0m' # Text Reset @@ -29,5 +30,5 @@ abort() { headline=$(head -n 1 $1 | wc -c) [[ $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" |