adjust the log code for run_ps
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5747 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
c0d79d30b2
commit
a1dc150258
@ -265,10 +265,7 @@ run_ps () {
|
||||
|
||||
if [[ -f \\\$1 ]]; then
|
||||
echo \\"Running postscript: \\\$1\\" | tee -a \\\$logfile
|
||||
OUTPUT=\\\`./\\\$1 2>&1\\\`
|
||||
if [[ -n \\\$OUTPUT ]]; then
|
||||
echo \\"\\\$OUTPUT\\" | tee -a \\\$logfile
|
||||
fi
|
||||
\\\`./\\\$1 2>&1\\\` | tee -a \\\$logfile
|
||||
else
|
||||
echo \\"Postscript \\\$1 does NOT exist.\\" | tee -a \\\$logfile
|
||||
fi
|
||||
|
@ -315,10 +315,7 @@ run_ps () {
|
||||
|
||||
if [[ -f \$1 ]]; then
|
||||
echo \"Running postscript: \$1\" | tee -a \$logfile
|
||||
OUTPUT=\`./\$1 2>&1\`
|
||||
if [[ -n \$OUTPUT ]]; then
|
||||
echo \"\$OUTPUT\" | tee -a \$logfile
|
||||
fi
|
||||
\`./\$1 2>&1\` | tee -a \$logfile
|
||||
else
|
||||
echo \"Postscript \$1 does NOT exist.\" | tee -a \$logfile
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user