2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-20 02:00:24 +00:00

fix when xcatdebugmode=1, non shell (/bin/sh) postscripts will not show output back on MN #5510

This commit is contained in:
yangsbj
2018-08-15 06:05:29 -04:00
parent 6998bca246
commit 7cf413a073

View File

@@ -896,7 +896,7 @@ run_ps () {
bash -x ./\$@ 2>&1 | tee -a \$logfile | tee >(logger -t xcat.mypostscript -p debug)
ret_local=\${PIPESTATUS[0]}
else
./\$@ 2>&1 | tee -a \$logfile | logger -t xcat.mypostscript -p debug
./\$@ 2>&1 | tee -a \$logfile | tee >(logger -t xcat.mypostscript -p debug)
ret_local=\${PIPESTATUS[0]}
fi
else