fix defect 3642
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16733 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
9d65034701
commit
a758cdf573
@ -667,14 +667,12 @@ run_ps () {
|
||||
|
||||
if [ -f \$1 ]; then
|
||||
echo \"\`date\` Running postscript: \$@\" | tee -a \$logfile
|
||||
#./\$@ 2>&1 1> /tmp/tmp4xcatlog
|
||||
#cat /tmp/tmp4xcatlog | tee -a \$logfile
|
||||
./\$@ 2>&1 | tee -a \$logfile
|
||||
ret_local=\${PIPESTATUS[0]}
|
||||
if [ \"\$ret_local\" -ne \"0\" ]; then
|
||||
return_value=\$ret_local
|
||||
fi
|
||||
echo \"Postscript: \$@ exited with code \$ret_local\"
|
||||
echo \"Postscript: \$@ exited with code \$ret_local\" | tee -a \$logfile
|
||||
else
|
||||
echo \"\`date\` Postscript \$1 does NOT exist.\" | tee -a \$logfile
|
||||
return_value=-1
|
||||
|
Loading…
Reference in New Issue
Block a user