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