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
This commit is contained in:
xq2005 2012-10-15 08:22:22 +00:00
parent a1edd1ece5
commit fefff805b5

View File

@ -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