diff -r 5105b3e83f26 -r e0cc6a00953e scripts/functions --- a/scripts/functions Fri Jun 20 11:58:13 2008 +0000 +++ b/scripts/functions Sun Jul 13 10:44:26 2008 +0000 @@ -73,7 +73,7 @@ if [ $# -eq 0 ]; then cat - else - echo "${1}" + echo "${@}" fi |( IFS="\n" # We want the full lines, even leading spaces _prog_bar_cpt=0 _prog_bar[0]='/' @@ -110,7 +110,8 @@ CT_DoExecLog() { local level="$1" shift - eval "$@" 2>&1 |CT_DoLog "${level}" + CT_DoLog ${level} "${@}" + eval "${@}" 2>&1 |CT_DoLog "${level}" } # Tail message to be logged whatever happens