mirror of
				https://github.com/dockur/windows.git
				synced 2025-10-30 12:45:48 +00:00 
			
		
		
		
	Update install.sh
This commit is contained in:
		
							parent
							
								
									72e8bdf62e
								
							
						
					
					
						commit
						b93104c341
					
				
					 1 changed files with 9 additions and 4 deletions
				
			
		|  | @ -275,7 +275,8 @@ doMido() { | |||
| verifyFile() { | ||||
|   local iso="$1" | ||||
|   local version="$2" | ||||
|   local hash check | ||||
|   local hash="" | ||||
|   local check="" | ||||
| 
 | ||||
|   info "Calculating SHA256 checksum of the ISO file..." | ||||
| 
 | ||||
|  | @ -302,7 +303,7 @@ downloadFile() { | |||
|   local url="$2" | ||||
|   local desc="$3" | ||||
|   local version="$4" | ||||
|   local rc progress domain | ||||
|   local rc progress domain dots | ||||
| 
 | ||||
|   rm -f "$iso" | ||||
| 
 | ||||
|  | @ -316,8 +317,12 @@ downloadFile() { | |||
|   local msg="Downloading $desc..." | ||||
| 
 | ||||
|   domain=$(echo "$url" | awk -F/ '{print $3}') | ||||
|   domain=$(expr "$domain" : '.*\.\(.*\..*\)') | ||||
|   [[ "${domain,,}" != *"microsoft.com" ]] && msg="Downloading $desc from $domain..." | ||||
|   dots=$(echo $domain | grep -o "." | wc -l) | ||||
|   (( dots > 1 )) && domain=$(expr "$domain" : '.*\.\(.*\..*\)') | ||||
| 
 | ||||
|   if [ -n "$domain" ] && [[ "${domain,,}" != *"microsoft.com" ]]; | ||||
|     msg="Downloading $desc from $domain..." | ||||
|   fi | ||||
| 
 | ||||
|   info "$msg" && html "$msg" | ||||
|   /run/progress.sh "$iso" "Downloading $desc ([P])..." & | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Kroese
						Kroese