mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Refactor get_rocky()
This commit is contained in:
		
							parent
							
								
									ecb0afbcce
								
							
						
					
					
						commit
						ddb1f30d4f
					
				
					 1 changed files with 8 additions and 8 deletions
				
			
		
							
								
								
									
										16
									
								
								quickget
									
										
									
									
									
								
							
							
						
						
									
										16
									
								
								quickget
									
										
									
									
									
								
							|  | @ -1124,17 +1124,17 @@ function get_zorin() { | ||||||
| function get_rocky() { | function get_rocky() { | ||||||
|     local HASH="" |     local HASH="" | ||||||
|     local ISO="" |     local ISO="" | ||||||
|  |     local ISOTYPE="minimal" | ||||||
|     local URL="" |     local URL="" | ||||||
| 
 | 
 | ||||||
|     local arch="x86_64" |  | ||||||
|     local baseurl="https://download.rockylinux.org/pub/rocky/${RELEASE}/isos/${arch}" |  | ||||||
| 
 |  | ||||||
|     validate_release "releases_rockylinux" |     validate_release "releases_rockylinux" | ||||||
|     ISO="Rocky-${RELEASE}-${arch}-${ISOTYPE}.iso" |     if [ -n "${1}" ]; then | ||||||
|     URL="${baseurl}/${ISO}" |       ISOTYPE="${1}" | ||||||
|     HASH=$(wget -q -O- "${baseurl}/CHECKSUM" | grep "SHA256 (${ISO})" | grep -E -i -w -o '[0-9a-z]{64}') |     fi | ||||||
| 
 |     URL="https://download.rockylinux.org/pub/rocky/${RELEASE}/isos/x86_64" | ||||||
|     web_get "${URL}" "${VM_PATH}" |     ISO="Rocky-${RELEASE}-x86_64-${ISOTYPE}.iso" | ||||||
|  |     HASH=$(wget -q -O- "${URL}/CHECKSUM" | grep "SHA256" | grep "${ISO}" | cut -d' ' -f4) | ||||||
|  |     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