mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Refactor Debian support to enable past releases
This commit is contained in:
		
							parent
							
								
									614ea2f4c3
								
							
						
					
					
						commit
						6b54c58173
					
				
					 1 changed files with 8 additions and 2 deletions
				
			
		
							
								
								
									
										10
									
								
								quickget
									
										
									
									
									
								
							
							
						
						
									
										10
									
								
								quickget
									
										
									
									
									
								
							|  | @ -248,7 +248,8 @@ function releases_cachyos() { | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| function releases_debian() { | function releases_debian() { | ||||||
|     echo 11.2.0 |     echo 10.11.0 \ | ||||||
|  |     11.2.0 | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| function editions_debian() { | function editions_debian() { | ||||||
|  | @ -819,12 +820,17 @@ function get_debian() { | ||||||
|     local EDITION="" |     local EDITION="" | ||||||
|     local HASH="" |     local HASH="" | ||||||
|     local ISO="" |     local ISO="" | ||||||
|     local URL="https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid" |     local URL="" | ||||||
| 
 | 
 | ||||||
|     if [ -n "${1}" ]; then |     if [ -n "${1}" ]; then | ||||||
|       EDITION="${1}" |       EDITION="${1}" | ||||||
|     fi |     fi | ||||||
| 
 | 
 | ||||||
|  |     case ${RELEASE} in | ||||||
|  |       11.2.0) URL="https://cdimage.debian.org/debian-cd/${RELEASE}-live/amd64/iso-hybrid";; | ||||||
|  |       *)      URL="https://cdimage.debian.org/cdimage/archive/${RELEASE}-live/amd64/iso-hybrid/" | ||||||
|  |     esac | ||||||
|  | 
 | ||||||
|     ISO="debian-live-${RELEASE}-amd64-${EDITION}.iso" |     ISO="debian-live-${RELEASE}-amd64-${EDITION}.iso" | ||||||
|     HASH=$(wget -q -O- "${URL}/SHA512SUMS" | grep "${ISO}" | cut -d' ' -f1) |     HASH=$(wget -q -O- "${URL}/SHA512SUMS" | grep "${ISO}" | cut -d' ' -f1) | ||||||
|     web_get "${URL}/${ISO}" "${VM_PATH}" |     web_get "${URL}/${ISO}" "${VM_PATH}" | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue