summaryrefslogtreecommitdiff
path: root/scripts/functions
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/functions')
-rw-r--r--scripts/functions5
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