diff --git a/xCAT/postscripts/xcataixpost b/xCAT/postscripts/xcataixpost index 4198ea7c8..316e42206 100755 --- a/xCAT/postscripts/xcataixpost +++ b/xCAT/postscripts/xcataixpost @@ -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 diff --git a/xCAT/postscripts/xcatdsklspost b/xCAT/postscripts/xcatdsklspost index b32782099..38b36af24 100755 --- a/xCAT/postscripts/xcatdsklspost +++ b/xCAT/postscripts/xcatdsklspost @@ -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