mirror of
				https://github.com/RetroDECK/RetroDECK.git
				synced 2025-04-10 19:15:12 +00:00 
			
		
		
		
	Maybe fixed now
This commit is contained in:
		
							parent
							
								
									ecd782c1bd
								
							
						
					
					
						commit
						f8bf91c25c
					
				|  | @ -1,3 +1,3 @@ | |||
| # The proper format for this file is | ||||
| # URL^PLACEHOLDERTEXT | ||||
| https://buildbot.libretro.com/assets/cores/DOOM/Doom%20%28Shareware%29.zip^DOOMSHA | ||||
| https://buildbot.libretro.com/assets/cores/DOOM/Doom%20%28Shareware%29.zip^DOOMSHAPLACEHOLDER | ||||
|  | @ -15,11 +15,13 @@ echo | |||
| 
 | ||||
| while IFS="^" read -r url placeholder | ||||
| do | ||||
|   echo | ||||
|   echo "Placeholder text: $placeholder" | ||||
|   echo "URL to hash: $url" | ||||
|   echo | ||||
|   hash=$(curl -sL "$url" | sha256sum | cut -d ' ' -f1) | ||||
|   echo "Hash found: $hash" | ||||
|   sed -i 's^'"$placeholder"'^'"$hash"'^' $rd_manifest | ||||
|   if [[ ! $url == "#"* ]]; then | ||||
|     echo | ||||
|     echo "Placeholder text: $placeholder" | ||||
|     echo "URL to hash: $url" | ||||
|     echo | ||||
|     hash=$(curl -sL "$url" | sha256sum | cut -d ' ' -f1) | ||||
|     echo "Hash found: $hash" | ||||
|     /bin/sed -i 's^'"$placeholder"'^'"$hash"'^' $rd_manifest | ||||
|   fi | ||||
| done < "$sha_update_list" | ||||
		Loading…
	
		Reference in a new issue
	
	 icenine451
						icenine451