Also log the command being executed when calling CT_DoExecLog (no user yet).
/trunk/scripts/functions | 5 3 2 0 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
1.1 --- a/scripts/functions Sun Jul 13 10:32:38 2008 +0000
1.2 +++ b/scripts/functions Sun Jul 13 10:44:26 2008 +0000
1.3 @@ -73,7 +73,7 @@
1.4 if [ $# -eq 0 ]; then
1.5 cat -
1.6 else
1.7 - echo "${1}"
1.8 + echo "${@}"
1.9 fi |( IFS="\n" # We want the full lines, even leading spaces
1.10 _prog_bar_cpt=0
1.11 _prog_bar[0]='/'
1.12 @@ -110,7 +110,8 @@
1.13 CT_DoExecLog() {
1.14 local level="$1"
1.15 shift
1.16 - eval "$@" 2>&1 |CT_DoLog "${level}"
1.17 + CT_DoLog ${level} "${@}"
1.18 + eval "${@}" 2>&1 |CT_DoLog "${level}"
1.19 }
1.20
1.21 # Tail message to be logged whatever happens