mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[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
This commit is contained in:
parent
8ce2f63d73
commit
e08e1e0d9a
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ then
|
||||||
quit $ERR_LENGTH;
|
quit $ERR_LENGTH;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
lines=$(wc --lines "$1" | cut -f1 -d" ");
|
lines=$(wc -l "$1" | awk '{ print $1; }');
|
||||||
expecting=header;
|
expecting=header;
|
||||||
in_description=0;
|
in_description=0;
|
||||||
in_empty=0;
|
in_empty=0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue