From a1dc150258bc2758fd8fb8538091c1818f7e0321 Mon Sep 17 00:00:00 2001 From: wuzhy Date: Tue, 13 Apr 2010 02:57:40 +0000 Subject: [PATCH] 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 --- xCAT/postscripts/xcataixpost | 5 +---- xCAT/postscripts/xcatdsklspost | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) 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