-Fix potential shell syntax errors depending on variable value in otherpkgs

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4312 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2009-10-06 16:43:05 +00:00
parent db4588ec7e
commit 5e00fb4528

View File

@ -24,9 +24,9 @@
# do nothing for diskless deployment case because it is done in the image already
if [[ $UPDATENODE -ne 1 ]]; then
if [ $NODESETSTATE = "netboot" -o \
$NODESETSTATE = "diskless" -o \
$NODESETSTATE = "dataless" ]
if [ "$NODESETSTATE" = "netboot" -o \
"$NODESETSTATE" = "diskless" -o \
"$NODESETSTATE" = "dataless" ]
then
exit 0
fi