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() { | function get_garuda() { | ||||||
|     local BRANCH="" |  | ||||||
|     local EDITION="${1:-}" |     local EDITION="${1:-}" | ||||||
|     local HASH="" |     local HASH="" | ||||||
|     local ISO="" |     local ISO="" | ||||||
|     local URL="" |     local URL="" | ||||||
| 
 | 
 | ||||||
|     case ${EDITION} in |     case ${EDITION} in | ||||||
|       cinnamon|mate) BRANCH="community";; |       cinnamon|mate) URL="http://mirrors.fossho.st/garuda/iso/community/${EDITION}/${RELEASE}";; | ||||||
|       *) BRANCH="garuda";; |       *) URL="http://mirrors.fossho.st/garuda/iso/garuda/${EDITION}/${RELEASE}";; | ||||||
|     esac |     esac | ||||||
| 
 |     ISO="garuda-${EDITION}-linux-zen-${RELEASE}.iso" | ||||||
|     URL="http://mirrors.fossho.st/garuda/iso/${BRANCH}/${EDITION}/${RELEASE}" |  | ||||||
|     ISO="${OS}-${EDITION}-linux-zen-${RELEASE}.iso" |  | ||||||
|     HASH="$(wget -q -O- "${URL}/${ISO}.sha256" | cut -d' ' -f1)" |     HASH="$(wget -q -O- "${URL}/${ISO}.sha256" | cut -d' ' -f1)" | ||||||
|     web_get "${URL}/${ISO}" "${VM_PATH}" |     echo "${URL}/${ISO} ${HASH}" | ||||||
|     check_hash "${ISO}" "${HASH}" |  | ||||||
|     make_vm_config "${ISO}" |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| function get_gentoo() { | function get_gentoo() { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue