[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:
Oleg Pudeyev 2011-03-11 19:27:38 -05:00
parent aa8f4000d3
commit 94e09ac041

View file

@ -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