2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-22 11:42:05 +00:00

fix updatenode with debugmode on does not output (#1969)

This commit is contained in:
penguhyang 2016-10-18 14:23:43 +08:00 committed by yangsong
parent 3ce2123be8
commit 6ec81e919b

View File

@ -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