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
This commit is contained in:
tonetto 2011-09-28 14:06:57 +00:00
parent 5088278f73
commit ab488fb9d3

View File

@ -21,7 +21,8 @@ export USEOPENSSLFORXCAT
cat /tmp/xcat_client_cred | grep -v '<'|sed -e 's/&lt;/</' -e 's/&gt;/>/' -e 's/&amp;/&/' -e 's/&quot/"/' -e "s/&apos;/'/" > /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/&lt;/</' -e 's/&gt;/>/' -e 's/&amp;/&/' -e 's/&quot/"/' -e "s/&apos;/'/" > /root/.xcat/client-cred.pem
CONT=`cat /root/.xcat/client-cred.pem`