1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-01-17 22:28:46 +01:00

[ticket/9824] Use printf instead of echo to render \n.

On FreeBSD `echo "\n"` prints \n verbatim. Use printf instead.

PHPBB3-9824
This commit is contained in:
Oleg Pudeyev 2011-03-01 20:20:29 -05:00
parent c489b189df
commit b90e01392c

View File

@ -35,7 +35,7 @@ then
# Branch is prefixed with 'ticket/', append ticket ID to message
if [ "$branch" != "${branch##ticket/}" ];
then
tail="\n\nPHPBB3-${branch##ticket/}";
tail="$(printf "\n\nPHPBB3-${branch##ticket/}")";
fi
echo "[$branch] $tail$(cat "$1")" > "$1"