mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Update quickget
This commit is contained in:
		
							parent
							
								
									18f92bc785
								
							
						
					
					
						commit
						3d30f8b1d7
					
				
					 1 changed files with 24 additions and 6 deletions
				
			
		
							
								
								
									
										30
									
								
								quickget
									
										
									
									
									
								
							
							
						
						
									
										30
									
								
								quickget
									
										
									
									
									
								
							|  | @ -893,16 +893,34 @@ function get_openbsd() { | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| function get_void() { | function get_void() { | ||||||
|     local FLAVOR="" |  | ||||||
|     local HASH="" |     local HASH="" | ||||||
|     local ISO="" |     local ISO="" | ||||||
|     local URL="" |     local URL="" | ||||||
|     local arch="x86_64" |     local HASH_URL="" | ||||||
|     # TODO:  only one hardcoded version of void added.. Add more and make it automatic | 
 | ||||||
|     validate_release "releases_void" |     validate_release "releases_void" | ||||||
|     URL="https://alpha.de.repo.voidlinux.org/live/current" |     DATE=$(wget -q -O- "https://mirror.fit.cvut.cz/voidlinux/live/current/sha256sum.txt" | awk 'NR == 1' |cut -d'.' -f1| cut -d'-' -f4) | ||||||
|     ISO="void-live-x86_64-20210930-xfce.iso" |     URL="http://mirror.fit.cvut.cz/voidlinux/live/current" | ||||||
|     #ISO="void-live-${ARCH}${LIBC}-${VERSION}-${FLAVOR}.iso" |     case ${RELEASE} in | ||||||
|  |       base) | ||||||
|  |         ISO="void-live-x86_64-${DATE}.iso";; | ||||||
|  |       musl) | ||||||
|  |         ISO="void-live-x86_64-musl-${DATE}.iso";; | ||||||
|  |       xfce) | ||||||
|  |         ISO="void-live-x86_64-${DATE}-xfce.iso";; | ||||||
|  |       xfce-musl) | ||||||
|  |         ISO="void-live-x86_64-musl-${DATE}-xfce.iso";; | ||||||
|  |     esac | ||||||
|  |     case ${RELEASE} in | ||||||
|  |       base) | ||||||
|  |         HASH="$(wget -q -O- "https://mirror.fit.cvut.cz/voidlinux/live/current/sha256sum.txt" | grep "void-live-x86_64-${DATE}.iso" | cut -d' ' -f4)";; | ||||||
|  |       musl) | ||||||
|  |         HASH="$(wget -q -O- "https://mirror.fit.cvut.cz/voidlinux/live/current/sha256sum.txt" | grep "void-live-x86_64-musl-${DATE}.iso" | cut -d' ' -f4)";; | ||||||
|  |       xfce) | ||||||
|  |         HASH="$(wget -q -O- "https://mirror.fit.cvut.cz/voidlinux/live/current/sha256sum.txt" | grep "void-live-x86_64-${DATE}-xfce.iso" | cut -d' ' -f4)";; | ||||||
|  |       xfce-musl) | ||||||
|  |         HASH="$(wget -q -O- "https://mirror.fit.cvut.cz/voidlinux/live/current/sha256sum.txt" | grep "void-live-x86_64-musl-${DATE}.iso" | cut -d' ' -f4)";; | ||||||
|  |     esac | ||||||
|     web_get "${URL}/${ISO}" "${VM_PATH}" |     web_get "${URL}/${ISO}" "${VM_PATH}" | ||||||
|     check_hash "${ISO}" "${HASH}" |     check_hash "${ISO}" "${HASH}" | ||||||
|     make_vm_config "${ISO}" |     make_vm_config "${ISO}" | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue