summaryrefslogtreecommitdiff
path: root/scripts/functions
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-09-06 14:49:20 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-09-06 14:49:20 (GMT)
commit9ce20533526a29a950df2a41c31eccbe611d655d (patch)
treee728c6d06e194a324e3ba8d6fd35a9ec10c9cbdb /scripts/functions
parentb7d11da128bf9d1ec2a7623d928bb5011d72c2a1 (diff)
log functions: fix CT_DoLog and CT_DoExecLog
$@ and $* are different when in double quotes; use $* to print the message.
Diffstat (limited to 'scripts/functions')
-rw-r--r--scripts/functions4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/functions b/scripts/functions
index ae584c4..62a2f99 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -79,7 +79,7 @@ CT_DoLog() {
if [ $# -eq 0 ]; then
cat -
else
- printf "${@}\n"
+ printf "${*}\n"
fi |( IFS="${CR}" # We want the full lines, even leading spaces
_prog_bar_cpt=0
_prog_bar[0]='/'
@@ -116,7 +116,7 @@ CT_DoLog() {
CT_DoExecLog() {
local level="$1"
shift
- CT_DoLog DEBUG "==> Executing: '${@}'"
+ CT_DoLog DEBUG "==> Executing: '${*}'"
"${@}" 2>&1 |CT_DoLog "${level}"
}