mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Refactor get_garuda() to add create_vm() compatibility
This commit is contained in:
		
							parent
							
								
									6941a797d4
								
							
						
					
					
						commit
						039d1773e4
					
				
					 1 changed files with 4 additions and 9 deletions
				
			
		
							
								
								
									
										13
									
								
								quickget
									
										
									
									
									
								
							
							
						
						
									
										13
									
								
								quickget
									
										
									
									
									
								
							|  | @ -806,23 +806,18 @@ function get_freebsd() { | |||
| } | ||||
| 
 | ||||
| function get_garuda() { | ||||
|     local BRANCH="" | ||||
|     local EDITION="${1:-}" | ||||
|     local HASH="" | ||||
|     local ISO="" | ||||
|     local URL="" | ||||
| 
 | ||||
|     case ${EDITION} in | ||||
|       cinnamon|mate) BRANCH="community";; | ||||
|       *) BRANCH="garuda";; | ||||
|       cinnamon|mate) URL="http://mirrors.fossho.st/garuda/iso/community/${EDITION}/${RELEASE}";; | ||||
|       *) URL="http://mirrors.fossho.st/garuda/iso/garuda/${EDITION}/${RELEASE}";; | ||||
|     esac | ||||
| 
 | ||||
|     URL="http://mirrors.fossho.st/garuda/iso/${BRANCH}/${EDITION}/${RELEASE}" | ||||
|     ISO="${OS}-${EDITION}-linux-zen-${RELEASE}.iso" | ||||
|     ISO="garuda-${EDITION}-linux-zen-${RELEASE}.iso" | ||||
|     HASH="$(wget -q -O- "${URL}/${ISO}.sha256" | cut -d' ' -f1)" | ||||
|     web_get "${URL}/${ISO}" "${VM_PATH}" | ||||
|     check_hash "${ISO}" "${HASH}" | ||||
|     make_vm_config "${ISO}" | ||||
|     echo "${URL}/${ISO} ${HASH}" | ||||
| } | ||||
| 
 | ||||
| function get_gentoo() { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue