From 5e00fb4528b0a809013e2c3bb40d854f2cbcbe44 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 6 Oct 2009 16:43:05 +0000 Subject: [PATCH] -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 --- xCAT/postscripts/otherpkgs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xCAT/postscripts/otherpkgs b/xCAT/postscripts/otherpkgs index 7cbdf920a..f5a722de7 100755 --- a/xCAT/postscripts/otherpkgs +++ b/xCAT/postscripts/otherpkgs @@ -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