From 6ec81e919be18e62f1f4b898a7336a7316bdad1f Mon Sep 17 00:00:00 2001 From: penguhyang Date: Tue, 18 Oct 2016 14:23:43 +0800 Subject: [PATCH] fix updatenode with debugmode on does not output (#1969) --- xCAT/postscripts/xcatdsklspost | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT/postscripts/xcatdsklspost b/xCAT/postscripts/xcatdsklspost index cdf6e0fcb..45b021da9 100755 --- a/xCAT/postscripts/xcatdsklspost +++ b/xCAT/postscripts/xcatdsklspost @@ -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