mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-06 14:35:56 +02: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:
parent
c489b189df
commit
b90e01392c
@ -35,7 +35,7 @@ then
|
|||||||
# Branch is prefixed with 'ticket/', append ticket ID to message
|
# Branch is prefixed with 'ticket/', append ticket ID to message
|
||||||
if [ "$branch" != "${branch##ticket/}" ];
|
if [ "$branch" != "${branch##ticket/}" ];
|
||||||
then
|
then
|
||||||
tail="\n\nPHPBB3-${branch##ticket/}";
|
tail="$(printf "\n\nPHPBB3-${branch##ticket/}")";
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "[$branch] $tail$(cat "$1")" > "$1"
|
echo "[$branch] $tail$(cat "$1")" > "$1"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user