mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/10078] Avoid \n in strings given to echo for portability.
Also preserve whitespace (including newlines) when printing the lines that exceed 80 character limit. PHPBB3-10078
This commit is contained in:
parent
aa8f4000d3
commit
94e09ac041
1 changed files with 3 additions and 2 deletions
|
@ -70,8 +70,9 @@ msg=$(grep -nE '.{81,}' "$1");
|
||||||
|
|
||||||
if [ $? -eq 0 ]
|
if [ $? -eq 0 ]
|
||||||
then
|
then
|
||||||
echo "The following lines are greater than 80 characters long:\n" >&2;
|
echo "The following lines are greater than 80 characters long:" >&2;
|
||||||
echo $msg >&2;
|
echo >&2
|
||||||
|
echo "$msg" >&2;
|
||||||
|
|
||||||
quit $ERR_LENGTH;
|
quit $ERR_LENGTH;
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue