fix bug 4609: rcons returns /opt/xcat/bin/rcons: line 62: [: ==: unary operator expected

This commit is contained in:
ertaozh 2015-03-17 03:01:21 -04:00 committed by Victor Hu
parent 28cb65ebac
commit f731fb2ec9

View File

@ -59,8 +59,8 @@ USE_CONFLUENT=0
CONSOLE_SERVICE_KEYWORD=`tabdump site | grep consoleservice | cut -d, -f1 | tr -d '"'`
CONSOLE_SERVICE_VALUE=`tabdump site | grep consoleservice | cut -d, -f2 | tr -d '"'`
if [ $CONSOLE_SERVICE_KEYWORD == "consoleservice" ]; then
if [ $CONSOLE_SERVICE_VALUE == "confluent" ]; then
if [ "$CONSOLE_SERVICE_KEYWORD" == "consoleservice" ]; then
if [ "$CONSOLE_SERVICE_VALUE" == "confluent" ]; then
USE_CONFLUENT=1
fi
fi