From db0d43950a2f9ab1f34daac688375b91fc429881 Mon Sep 17 00:00:00 2001 From: immarvin Date: Sun, 25 Nov 2012 04:38:52 +0000 Subject: [PATCH] add proper return value git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14423 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/xcatclient | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xCAT/postscripts/xcatclient b/xCAT/postscripts/xcatclient index 66c5ed7d0..cb32e2e4c 100755 --- a/xCAT/postscripts/xcatclient +++ b/xCAT/postscripts/xcatclient @@ -23,6 +23,7 @@ if [ ! -x /usr/bin/openssl ]; then #Unless we have openssl stup exit 0 fi USEOPENSSLFORXCAT=1 #Declare 2.3 style SSL +RETURNVAL=0 export USEOPENSSLFORXCAT allowcred.awk & CREDPID=$! @@ -44,9 +45,11 @@ export USEOPENSSLFORXCAT else ERR_MSG=`sed -n 's%.*\(.*\).*%\1%p' /tmp/xcat_client_cred` logger -t xCAT -p local4.err xcat_client_cred Error: $ERR_MSG + RETURNVAL=-1 fi rm /tmp/xcat_client_cred chmod 600 /root/.xcat/client-cred.pem cp _xcat/ca.pem /root/.xcat/ca.pem - kill -9 $CREDPID + kill -9 $CREDPIDi + exit $RETURNVAL