-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:
		| @@ -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#/} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user