mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Correct batocera for release 34 (#512)
* chore: docs submodule * check for current batocera release at runtime
This commit is contained in:
		
							parent
							
								
									d0c2bb228a
								
							
						
					
					
						commit
						b7e1fba117
					
				
					 2 changed files with 19 additions and 4 deletions
				
			
		
							
								
								
									
										21
									
								
								quickget
									
										
									
									
									
								
							
							
						
						
									
										21
									
								
								quickget
									
										
									
									
									
								
							|  | @ -291,7 +291,7 @@ function releases_fedora() { | |||
| } | ||||
| 
 | ||||
| function releases_batocera() { | ||||
|   echo 33 | ||||
|   echo 32 33 34 | ||||
| } | ||||
| 
 | ||||
| function editions_fedora() { | ||||
|  | @ -850,8 +850,23 @@ function get_arcolinux() { | |||
| 
 | ||||
| function get_batocera() { | ||||
|     local HASH="" | ||||
|     local ISO="batocera-x86_64-${RELEASE}-20220203.img.gz" | ||||
|     local URL="https://updates.batocera.org/x86_64/stable/last" | ||||
|     local URL="https://mirrors.o2switch.fr/batocera/x86_64/stable/last" | ||||
|     local ISO="$(curl -sl ${URL}/ | grep -e 'batocera.*img.gz'|cut -d\" -f2)" | ||||
|     local CURRENT_RELEASE=$(echo "${ISO}"| cut -d\- -f3) | ||||
| 
 | ||||
| 
 | ||||
|     case ${RELEASE} in | ||||
|       ${CURRENT_RELEASE})  #Current release | ||||
|          URL+="" | ||||
|          ;; | ||||
|       *) | ||||
|          URL+="/archives/${RELEASE}" | ||||
|          ISO="$(curl -sl ${URL}/ | grep -e 'batocera.*img.gz'|cut -d\" -f2)" | ||||
|          ;; # non-current are here | ||||
| 
 | ||||
|     esac | ||||
| 
 | ||||
| 
 | ||||
|     echo "${URL}/${ISO} ${HASH}" | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue