mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-22 03:32:04 +00:00
fix updatenode with debugmode on does not output (#1969)
This commit is contained in:
parent
3ce2123be8
commit
6ec81e919b
@ -853,7 +853,7 @@ run_ps () {
|
||||
local compt=\$(file \$1)
|
||||
local reg=\"shell script\"
|
||||
if [[ \"\$compt\" =~ \$reg ]]; then
|
||||
bash -x ./\$@ 2>&1 | tee -a \$logfile | logger -t xcat -p debug
|
||||
bash -x ./\$@ 2>&1 | tee -a \$logfile | tee >(logger -t xcat -p debug)
|
||||
ret_local=\${PIPESTATUS[0]}
|
||||
else
|
||||
./\$@ 2>&1 | tee -a \$logfile | logger -t xcat -p debug
|
||||
|
Loading…
x
Reference in New Issue
Block a user