mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	fix(rebornos): use CDN metadata API instead of scraping
Signed-off-by: SoulHarsh007 <harsh.peshwani@outlook.com>
This commit is contained in:
		
							parent
							
								
									2574113fa1
								
							
						
					
					
						commit
						05c7511b2f
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		
							
								
								
									
										4
									
								
								quickget
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								quickget
									
										
									
									
									
								
							|  | @ -549,8 +549,8 @@ function releases_rebornos() { | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| function get_rebornos() { | function get_rebornos() { | ||||||
|    local ISO=$(curl -s 'https://www.rebornos.org/download/' | grep -ohE 'https://pub-cb7a4d4f7a974896b3bf40c52d1defbc.r2.dev/RebornOS-ISO/(rebornos_xfce_minimal|rebornos_iso)-[0-9]{4}.[0-9]{2}.[0-9]{2}-x86_64.iso' | tail -n1) |     local ISO=$(wget -q -O- "https://meta.cdn.soulharsh007.dev/RebornOS-ISO?format=json" | jq -r ".url") | ||||||
|    local HASH=$(curl -s 'https://www.rebornos.org/download/' | grep -ozP 'Checksum MD5:.*[0-9a-fA-F]{32}' | grep -zoP '[0-9a-fA-F]{32}' | cut -d '' -f1) |     local HASH=$(wget -q -O- "https://meta.cdn.soulharsh007.dev/RebornOS-ISO?format=json" | jq -r ".md5") | ||||||
|     echo "${ISO} ${HASH}" |     echo "${ISO} ${HASH}" | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue