mirror of
				https://github.com/dockur/windows.git
				synced 2025-10-27 03:15:49 +00:00 
			
		
		
		
	fix: Update download links (#980)
This commit is contained in:
		
							parent
							
								
									c82725ec61
								
							
						
					
					
						commit
						6825b6a45a
					
				
					 3 changed files with 9 additions and 5 deletions
				
			
		|  | @ -620,10 +620,11 @@ getMG() { | |||
|   } | ||||
| 
 | ||||
|   local list="" | ||||
|   list=$(echo "$body" | grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*" | grep -i '\.iso$') | ||||
|   list=$(echo "$body" | xmllint --html --nonet --xpath "//a[contains(text(), '.iso')]" - 2>/dev/null) | ||||
| 
 | ||||
|   local result="" | ||||
|   result=$(echo "$list" | grep -i "${platform}" | grep "${pattern}" | grep -i -m 1 "${locale,,}_") | ||||
|   result=$(echo "$result" | sed -r 's/.*href="([^"]+).*/\1/g') | ||||
| 
 | ||||
|   if [ -z "$result" ]; then | ||||
|     if [[ "${lang,,}" != "en" ]] && [[ "${lang,,}" != "en-"* ]]; then | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Kroese
						Kroese