diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-07-13 10:44:26 (GMT) |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-07-13 10:44:26 (GMT) |
commit | e171928b08472aef796274158868f9c358f5b1c7 (patch) | |
tree | defb35b5597b26a446fe3f377ac6a5e98691b9a2 | |
parent | 6e498915655b15dfc84215c36b60859e044020d1 (diff) |
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(-)
-rw-r--r-- | scripts/functions | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/functions b/scripts/functions index fc50757..bd3c336 100644 --- a/scripts/functions +++ b/scripts/functions @@ -73,7 +73,7 @@ CT_DoLog() { 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_DoLog() { 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 |