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:
parent
f34733564c
commit
68882c353c
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user