From f731fb2ec990f88d8a74e4cb466fe15b37cebaee Mon Sep 17 00:00:00 2001 From: ertaozh Date: Tue, 17 Mar 2015 03:01:21 -0400 Subject: [PATCH] fix bug 4609: rcons returns /opt/xcat/bin/rcons: line 62: [: ==: unary operator expected --- xCAT-client/bin/rcons | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-client/bin/rcons b/xCAT-client/bin/rcons index a226f3bfc..ec599ea46 100755 --- a/xCAT-client/bin/rcons +++ b/xCAT-client/bin/rcons @@ -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