diff options
author | Chris Smith <toonarmy@phpbb.com> | 2010-09-07 23:36:33 +0100 |
---|---|---|
committer | Chris Smith <toonarmy@phpbb.com> | 2010-09-08 22:53:37 +0100 |
commit | e08e1e0d9a7c529dbec47705beb2a7384a0e4300 (patch) | |
tree | 636d2f931a2a4dee0cfd2c22582348f9bdae2681 /git-tools/hooks/commit-msg | |
parent | 8ce2f63d73f8f3b5fec220448ca060c43733840f (diff) | |
download | forums-e08e1e0d9a7c529dbec47705beb2a7384a0e4300.tar forums-e08e1e0d9a7c529dbec47705beb2a7384a0e4300.tar.gz forums-e08e1e0d9a7c529dbec47705beb2a7384a0e4300.tar.bz2 forums-e08e1e0d9a7c529dbec47705beb2a7384a0e4300.tar.xz forums-e08e1e0d9a7c529dbec47705beb2a7384a0e4300.zip |
[task/git-tools] Change the GNU --lines argument to the POSIX -l
Changed to awk which handles the formatting differences between the
two versions of wc -- BSD version prefixes the output with spaces,
the GNU version does not.
PHPBB3-9808
Diffstat (limited to 'git-tools/hooks/commit-msg')
-rwxr-xr-x | git-tools/hooks/commit-msg | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-tools/hooks/commit-msg b/git-tools/hooks/commit-msg index 91951b05c2..a6777ff9c9 100755 --- a/git-tools/hooks/commit-msg +++ b/git-tools/hooks/commit-msg @@ -65,7 +65,7 @@ then quit $ERR_LENGTH; fi -lines=$(wc --lines "$1" | cut -f1 -d" "); +lines=$(wc -l "$1" | awk '{ print $1; }'); expecting=header; in_description=0; in_empty=0; |