mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Refactor get_ghostbsd() to add create_vm() compatibility
This commit is contained in:
		
							parent
							
								
									0ea2d1b3aa
								
							
						
					
					
						commit
						c36463d85d
					
				
					 1 changed files with 3 additions and 7 deletions
				
			
		
							
								
								
									
										10
									
								
								quickget
									
										
									
									
									
								
							
							
						
						
									
										10
									
								
								quickget
									
										
									
									
									
								
							|  | @ -833,19 +833,15 @@ function get_gentoo() { | ||||||
| function get_ghostbsd() { | function get_ghostbsd() { | ||||||
|     local EDITION="${1:-}" |     local EDITION="${1:-}" | ||||||
|     local ISO="" |     local ISO="" | ||||||
|     local URL="" |     local URL="https://download.ghostbsd.org/releases/amd64/${RELEASE}" | ||||||
|     local HASH="" |     local HASH="" | ||||||
| 
 | 
 | ||||||
|     case ${EDITION} in |     case ${EDITION} in | ||||||
|       mate) ISO="GhostBSD-${RELEASE}.iso";; |       mate) ISO="GhostBSD-${RELEASE}.iso";; | ||||||
|       xfce) ISO="GhostBSD-${RELEASE}-XFCE.iso";; |       xfce) ISO="GhostBSD-${RELEASE}-XFCE.iso";; | ||||||
|     esac |     esac | ||||||
| 
 |     HASH=$(wget -q -O- "${URL}/${ISO}.sha256" | grep "${ISO}" | cut -d' ' -f4) | ||||||
|     URL="https://download.ghostbsd.org/releases/amd64/${RELEASE}" |     echo "${URL}/${ISO} ${HASH}" | ||||||
|     HASH=$(wget -q -O- "${URL}/${ISO}.sha256" | grep "${ISO}" | cut -d' ' -f3) |  | ||||||
|     web_get "${URL}/${ISO}" "${VM_PATH}" |  | ||||||
|     check_hash "${ISO}" "${HASH}" |  | ||||||
|     make_vm_config "${ISO}" |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| function get_haiku() { | function get_haiku() { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue