mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-04-09 04:14:20 +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:
parent
3ffe23e274
commit
4cd607512b
@ -79,7 +79,7 @@ CT_DoLog() {
|
||||
if [ $# -eq 0 ]; then
|
||||
cat -
|
||||
else
|
||||
echo "${@}"
|
||||
printf "${@}\n"
|
||||
fi |( IFS="${CR}" # We want the full lines, even leading spaces
|
||||
_prog_bar_cpt=0
|
||||
_prog_bar[0]='/'
|
||||
|
Loading…
x
Reference in New Issue
Block a user