mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-04-14 14:36:36 +00:00
Make it easy to use \n
/trunk/scripts/functions | 5 4 1 0 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
This commit is contained in:
parent
7029a674e3
commit
c101cbccac
@ -52,6 +52,9 @@ CT_LOG_LEVEL_EXTRA=3
|
||||
CT_LOG_LEVEL_DEBUG=4
|
||||
CT_LOG_LEVEL_ALL=5
|
||||
|
||||
# Make it easy to use \n
|
||||
CR=$(printf "\n")
|
||||
|
||||
# A function to log what is happening
|
||||
# Different log level are available:
|
||||
# - ERROR: A serious, fatal error occurred
|
||||
@ -76,7 +79,7 @@ CT_DoLog() {
|
||||
cat -
|
||||
else
|
||||
echo "${@}"
|
||||
fi |( IFS="\n" # 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[0]='/'
|
||||
_prog_bar[1]='-'
|
||||
|
Loading…
x
Reference in New Issue
Block a user