mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-06-14 13:28:11 +00:00
[functions] Allow newlines (\n) in log messages
Allow caller to log messages with embedded newlines when calling CT_DoLog and other logging functions (eg. CT_Abort...).
This commit is contained in:
@ -79,7 +79,7 @@ CT_DoLog() {
|
|||||||
if [ $# -eq 0 ]; then
|
if [ $# -eq 0 ]; then
|
||||||
cat -
|
cat -
|
||||||
else
|
else
|
||||||
echo "${@}"
|
printf "${@}\n"
|
||||||
fi |( IFS="${CR}" # We want the full lines, even leading spaces
|
fi |( IFS="${CR}" # We want the full lines, even leading spaces
|
||||||
_prog_bar_cpt=0
|
_prog_bar_cpt=0
|
||||||
_prog_bar[0]='/'
|
_prog_bar[0]='/'
|
||||||
|
Reference in New Issue
Block a user