mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 15:27:42 +02: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:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user