-Make url parsing greedy so as not to be confused by too many colons

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9318 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2011-04-14 18:56:00 +00:00
parent 6d04c4a947
commit dc0f504997

View File

@ -4,7 +4,7 @@ RWDIR=.statelite
XCATMASTER=$XCAT
if [ ! -z "$imgurl" ]; then
if [ xhttp = x${imgurl%:*} ]; then
if [ xhttp = x${imgurl%%:*} ]; then
NFS=0
FILENAME=${imgurl##*/}
while [ ! -r "$FILENAME" ]; do
@ -14,7 +14,7 @@ if [ ! -z "$imgurl" ]; then
sleep 27
fi
done
elif [ xnfs = x${imgurl%:*} ]; then
elif [ xnfs = x${imgurl%%:*} ]; then
NFS=1
SERVER=${imgurl#nfs:}
SERVER=${SERVER#/}