2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-09 13:00:16 +00:00

Merge pull request #5515 from immarvin/ondebugmode

fix when xcatdebugmode=1, non shell (/bin/sh) postscripts will not show output back on MN #5510
This commit is contained in:
Gᴏɴɢ Jie
2018-08-15 18:13:38 +08:00
committed by GitHub

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