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
This commit is contained in:
daniceexi 2010-01-20 10:00:27 +00:00
parent f34733564c
commit 68882c353c
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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