mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-28 20:40:24 +02: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:
@@ -70,8 +70,9 @@ msg=$(grep -nE '.{81,}' "$1");
|
||||
|
||||
if [ $? -eq 0 ]
|
||||
then
|
||||
echo "The following lines are greater than 80 characters long:\n" >&2;
|
||||
echo $msg >&2;
|
||||
echo "The following lines are greater than 80 characters long:" >&2;
|
||||
echo >&2
|
||||
echo "$msg" >&2;
|
||||
|
||||
quit $ERR_LENGTH;
|
||||
fi
|
||||
|
Reference in New Issue
Block a user