From ab488fb9d30c114dac0bb260a64d87eeb24fa46e Mon Sep 17 00:00:00 2001 From: tonetto Date: Wed, 28 Sep 2011 14:06:57 +0000 Subject: [PATCH] Fixing bashisms on this postscript. Tracked by Bug 3415015 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10662 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/xcatclient | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xCAT/postscripts/xcatclient b/xCAT/postscripts/xcatclient index aaa6ec215..7b84424ad 100755 --- a/xCAT/postscripts/xcatclient +++ b/xCAT/postscripts/xcatclient @@ -21,7 +21,8 @@ export USEOPENSSLFORXCAT cat /tmp/xcat_client_cred | grep -v '<'|sed -e 's/<//' -e 's/&/&/' -e 's/"/"/' -e "s/'/'/" > /root/.xcat/client-cred.pem CONT=`cat /root/.xcat/client-cred.pem` while [ -z "$CONT" ]; do - let SLI=$RANDOM%10+10 + SLI=$(awk 'BEGIN{srand(); printf("%d\n",rand()*10)}') + SLI=$((10 + $SLI)) sleep $SLI getcredentials.awk xcat_client_cred | grep -v '<'|sed -e 's/<//' -e 's/&/&/' -e 's/"/"/' -e "s/'/'/" > /root/.xcat/client-cred.pem CONT=`cat /root/.xcat/client-cred.pem`