mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Refactor Zorin support to add editions
This commit is contained in:
		
							parent
							
								
									338a03c571
								
							
						
					
					
						commit
						9bf14c5bc0
					
				
					 1 changed files with 14 additions and 5 deletions
				
			
		
							
								
								
									
										19
									
								
								quickget
									
										
									
									
									
								
							
							
						
						
									
										19
									
								
								quickget
									
										
									
									
									
								
							|  | @ -531,10 +531,14 @@ function languages_windows() { | |||
| } | ||||
| 
 | ||||
| function releases_zorin() { | ||||
|     echo 16core64 \ | ||||
|     16lite64 \ | ||||
|     16education64 \ | ||||
|     16edulite64 | ||||
|     echo 16 | ||||
| } | ||||
| 
 | ||||
| function editions_zorin() { | ||||
|     echo core64 \ | ||||
|     lite64 \ | ||||
|     education64 \ | ||||
|     edulite64 | ||||
| } | ||||
| 
 | ||||
| function check_hash() { | ||||
|  | @ -1426,11 +1430,16 @@ function get_void() { | |||
| } | ||||
| 
 | ||||
| function get_zorin() { | ||||
|     local EDITION="" | ||||
|     local ISO="" | ||||
|     local URL="" | ||||
| 
 | ||||
|     if [ -n "${1}" ]; then | ||||
|       EDITION="${1}" | ||||
|     fi | ||||
| 
 | ||||
|     # Parse out the iso URL from the redirector | ||||
|     URL=$(wget -q -S -O- --max-redirect=0 "https://zrn.co/${RELEASE}" 2>&1 | grep Location | cut -d' ' -f4) | ||||
|     URL=$(wget -q -S -O- --max-redirect=0 "https://zrn.co/${RELEASE}${EDITION}" 2>&1 | grep Location | cut -d' ' -f4) | ||||
|     ISO="${URL##*/}" | ||||
|     web_get "${URL}" "${VM_PATH}" | ||||
|     make_vm_config "${ISO}" | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue