mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-19 12:57:53 +00:00
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(-)
This commit is contained in:
parent
6e49891565
commit
e171928b08
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user