From 68882c353c9842ea7dd04944f432817b63cdb14b Mon Sep 17 00:00:00 2001 From: daniceexi Date: Wed, 20 Jan 2010 10:00:27 +0000 Subject: [PATCH] defect 2900900: Add the local path of postscript to avoid be treated as a command when postscript named with a special key word like test git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4993 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/xcataixpost | 2 +- xCAT/postscripts/xcatdsklspost | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT/postscripts/xcataixpost b/xCAT/postscripts/xcataixpost index c407fab85..478228f86 100755 --- a/xCAT/postscripts/xcataixpost +++ b/xCAT/postscripts/xcataixpost @@ -253,7 +253,7 @@ if (-f $scriptname) run_ps () { if [[ -f \\\$1 ]]; then echo \\"Running postscript: \\\$1\\" - OUTPUT=\\\`\\\$1 2>&1\\\` + OUTPUT=\\\`./\\\$1 2>&1\\\` if [[ -n \\\$OUTPUT ]]; then echo \\"\\\$OUTPUT\\" fi diff --git a/xCAT/postscripts/xcatdsklspost b/xCAT/postscripts/xcatdsklspost index 4787decf8..21b802e2e 100755 --- a/xCAT/postscripts/xcatdsklspost +++ b/xCAT/postscripts/xcatdsklspost @@ -238,7 +238,7 @@ echo " run_ps () { if [[ -f \$1 ]]; then echo \"Running postscript: \$1\" - OUTPUT=\`\$1 2>&1\` + OUTPUT=\`./\$1 2>&1\` if [[ -n \$OUTPUT ]]; then echo \"\$OUTPUT\" fi