From fefff805b509d43f2a1705c6808ff14f5e547914 Mon Sep 17 00:00:00 2001 From: xq2005 Date: Mon, 15 Oct 2012 08:22:22 +0000 Subject: [PATCH] change == into = for the rcons script git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14010 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- 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 f75aa90aa..09a5de91f 100755 --- a/xCAT-client/bin/rcons +++ b/xCAT-client/bin/rcons @@ -4,11 +4,11 @@ # To handle cases like running this via sudo, get the home dir properly os=`uname` -if [ "$os" == "Linux" ]; then +if [ "$os" = "Linux" ]; then HOME=`getent passwd $(whoami)|cut -d: -f 6` export HOME fi -if [ "$os" == "AIX" ]; then +if [ "$os" = "AIX" ]; then HOME=`lsuser -a home $(whoami)|cut -d= -f 2` export HOME fi