mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Refactor get_solus() to add create_vm() compatibility
This commit is contained in:
		
							parent
							
								
									7ec0751591
								
							
						
					
					
						commit
						fa49bf2e0d
					
				
					 1 changed files with 4 additions and 15 deletions
				
			
		
							
								
								
									
										19
									
								
								quickget
									
										
									
									
									
								
							
							
						
						
									
										19
									
								
								quickget
									
										
									
									
									
								
							|  | @ -1109,22 +1109,11 @@ function get_slackware() { | ||||||
| function get_solus() { | function get_solus() { | ||||||
|     local EDITION="${1:-}" |     local EDITION="${1:-}" | ||||||
|     local HASH="" |     local HASH="" | ||||||
|     local ISO="" |     local ISO="Solus-${RELEASE}-${EDITION}.iso" | ||||||
|     local URL="" |     local URL="https://mirrors.rit.edu/solus/images/${RELEASE}" | ||||||
| 
 | 
 | ||||||
|     case ${EDITION} in |     HASH=$(wget -q -O- "${URL}/${ISO}.sha256sum" | cut -d' ' -f1) | ||||||
|       mate|gnome) |     echo "${URL}/${ISO} ${HASH}" | ||||||
|         EDITION=${EDITION^^};; |  | ||||||
|       *) |  | ||||||
|         EDITION=${EDITION^};; |  | ||||||
|     esac |  | ||||||
| 
 |  | ||||||
|     URL="https://mirrors.rit.edu/solus/images/${RELEASE}" |  | ||||||
|     ISO="Solus-${RELEASE}-${EDITION}.iso" |  | ||||||
|     HASH=$(wget -q -O- "${URL}.sha256sum" | cut -d' ' -f1) |  | ||||||
|     web_get "${URL}/${ISO}" "${VM_PATH}" |  | ||||||
|     check_hash "${ISO}" "${HASH}" |  | ||||||
|     make_vm_config "${ISO}" |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| function get_tails() { | function get_tails() { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue