From 9a7c5e6c477458723423f3b836364975dbb2ce4b Mon Sep 17 00:00:00 2001 From: druckdev Date: Wed, 30 Jun 2021 12:51:29 +0200 Subject: [PATCH] meta:git-hooks:commit-msg: Fix typo I have no idea how I have not noticed this yet, as apparently every time I wrote a commit message that contains a body and not just a subject I got an error message complaining that the first word does not exist as a command. (With the exception of when it actually is, but then executing arbitrary code) --- meta/git/hooks/commit-msg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/git/hooks/commit-msg b/meta/git/hooks/commit-msg index ba5c20c..b01a86e 100755 --- a/meta/git/hooks/commit-msg +++ b/meta/git/hooks/commit-msg @@ -45,7 +45,7 @@ done BKP_IFS="$IFS" IFS=' ' -for line in $($body); do +for line in $body; do [[ ${#line} -le 72 ]] || die "Body lines too long. (<= 72)\n" done IFS="$BKP_IFS"