mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Refactor Haiku support to add editions
This commit is contained in:
		
							parent
							
								
									4cee4d3d63
								
							
						
					
					
						commit
						338a03c571
					
				
					 1 changed files with 14 additions and 6 deletions
				
			
		
							
								
								
									
										20
									
								
								quickget
									
										
									
									
									
								
							
							
						
						
									
										20
									
								
								quickget
									
										
									
									
									
								
							|  | @ -304,10 +304,15 @@ function releases_gentoo(){ | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| function releases_haiku() { | function releases_haiku() { | ||||||
|     echo r1beta3-x86_64 \ |     echo r1beta3 | ||||||
|          r1beta3-x86_gcc2h |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | function editions_haiku() { | ||||||
|  |     echo x86_64 \ | ||||||
|  |          x86_gcc2h | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| function releases_kali() { | function releases_kali() { | ||||||
|     echo latest \ |     echo latest \ | ||||||
|     weekly |     weekly | ||||||
|  | @ -935,14 +940,17 @@ function get_gentoo() { | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| function get_haiku() { | function get_haiku() { | ||||||
|     local BASE="" |     local EDITION="" | ||||||
|     local ISO="" |     local ISO="" | ||||||
|     local URL="" |     local URL="" | ||||||
|     local HASH="" |     local HASH="" | ||||||
| 
 | 
 | ||||||
|     BASE=$(echo "${RELEASE}" | cut -d'-' -f1) |     if [ -n "${1}" ]; then | ||||||
|     URL="https://cdn.haiku-os.org/haiku-release/${BASE}" |       EDITION="${1}" | ||||||
|     ISO="haiku-${RELEASE}-anyboot.iso" |     fi | ||||||
|  | 
 | ||||||
|  |     URL="https://cdn.haiku-os.org/haiku-release/${RELEASE}" | ||||||
|  |     ISO="haiku-${RELEASE}-${EDITION}-anyboot.iso" | ||||||
|     HASH=$(wget -q -O- "${URL}/${ISO}.sha256" | grep "${ISO}" | cut -d' ' -f4) |     HASH=$(wget -q -O- "${URL}/${ISO}.sha256" | grep "${ISO}" | cut -d' ' -f4) | ||||||
|     web_get "${URL}/${ISO}" "${VM_PATH}" |     web_get "${URL}/${ISO}" "${VM_PATH}" | ||||||
|     check_hash "${ISO}" "${HASH}" |     check_hash "${ISO}" "${HASH}" | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue