# HG changeset patch # User "Yann E. MORIN" # Date 1227894699 0 # Node ID 10d1270080e62d2ca40b5346b4847a13220589db # Parent faaf799d6b5e02b4339b3cf0f687941b451c77e3 Make it easy to use \n /trunk/scripts/functions | 5 4 1 0 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff -r faaf799d6b5e -r 10d1270080e6 scripts/functions --- a/scripts/functions Tue Nov 25 18:41:49 2008 +0000 +++ b/scripts/functions Fri Nov 28 17:51:39 2008 +0000 @@ -52,6 +52,9 @@ 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 @@ 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]='-'