mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	fix: make revised batocera actually find the latest file
This commit is contained in:
		
							parent
							
								
									b05dd50aea
								
							
						
					
					
						commit
						7bee31c666
					
				
					 1 changed files with 1 additions and 16 deletions
				
			
		
							
								
								
									
										15
									
								
								quickget
									
										
									
									
									
								
							
							
						
						
									
										15
									
								
								quickget
									
										
									
									
									
								
							|  | @ -1321,21 +1321,6 @@ function get_batocera() { | |||
|     local HASH="" | ||||
|     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