mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Refactor get_haiku()
This commit is contained in:
		
							parent
							
								
									8ad252295b
								
							
						
					
					
						commit
						174600a615
					
				
					 1 changed files with 5 additions and 3 deletions
				
			
		
							
								
								
									
										8
									
								
								quickget
									
										
									
									
									
								
							
							
						
						
									
										8
									
								
								quickget
									
										
									
									
									
								
							|  | @ -1430,16 +1430,18 @@ function get_garuda() { | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| function get_haiku() { | function get_haiku() { | ||||||
|  |     local BASE="" | ||||||
|     local ISO="" |     local ISO="" | ||||||
|     local URL="" |     local URL="" | ||||||
|     local HASH="" |     local HASH="" | ||||||
| 
 | 
 | ||||||
|     validate_release "releases_haiku" |     validate_release "releases_haiku" | ||||||
| 
 | 
 | ||||||
|  |     BASE=$(echo "${RELEASE}" | cut -d'-' -f1) | ||||||
|  |     URL="https://cdn.haiku-os.org/haiku-release/${BASE}" | ||||||
|     ISO="haiku-${RELEASE}-anyboot.iso" |     ISO="haiku-${RELEASE}-anyboot.iso" | ||||||
|     URL="https://cdn.haiku-os.org/haiku-release/$(echo $RELEASE | awk -F '-' '{print $1}')/${ISO}" |     HASH=$(wget -q -O- "${URL}/${ISO}.sha256" | grep "${ISO}" | cut -d' ' -f4) | ||||||
|     HASH=$(wget -q -O- ${URL}.sha256 | grep "${ISO}" | cut -d' ' -f4) |     web_get "${URL}/${ISO}" "${VM_PATH}" | ||||||
|     web_get "${URL}" "${VM_PATH}" |  | ||||||
|     check_hash "${ISO}" "${HASH}" |     check_hash "${ISO}" "${HASH}" | ||||||
|     make_vm_config "${ISO}" |     make_vm_config "${ISO}" | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue