mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	dynamic fetching of release tags
also swap wgets for curls
This commit is contained in:
		
							parent
							
								
									a99ca998f5
								
							
						
					
					
						commit
						6f8f99dc17
					
				
					 1 changed files with 4 additions and 3 deletions
				
			
		
							
								
								
									
										7
									
								
								quickget
									
										
									
									
									
								
							
							
						
						
									
										7
									
								
								quickget
									
										
									
									
									
								
							|  | @ -266,7 +266,8 @@ function editions_arcolinux() { | |||
| } | ||||
| 
 | ||||
| function releases_blendos() { | ||||
|     echo 23.01 | ||||
|     curl -s https://api.github.com/repos/blend-os/blendOS/releases  |grep tag_name | grep -o -E '[[:digit:]]+\.[[:digit:]]+' | ||||
| 
 | ||||
| } | ||||
| 
 | ||||
| function releases_cachyos() { | ||||
|  | @ -999,8 +1000,8 @@ function get_arcolinux() { | |||
| 
 | ||||
| function get_blendos() { | ||||
|     local HASH="" | ||||
|     local URL="$(wget -q https://api.github.com/repos/blend-os/blendOS/releases -O- |grep 'browser_download_url'|grep ${RELEASE} | grep -o '\"http.*\.iso\"'| cut -d\" -f 2| head -1)" | ||||
|     HASH=$(wget -q -O- "${URL}.sha256sum" | cut -d' ' -f1) | ||||
|     local URL="$(curl -s https://api.github.com/repos/blend-os/blendOS/releases  |grep 'browser_download_url'|grep ${RELEASE} | grep -o '\"http.*\.iso\"'| cut -d\" -f 2| head -1)" | ||||
|     HASH=$(curl -s "${URL}.sha256sum" | cut -d' ' -f1) | ||||
|     echo "${URL} ${HASH}" | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue