Merge pull request #305 from icenine451/cooker-0.7.0b-icenine451

Maybe fixed now
This commit is contained in:
icenine451 2023-04-13 16:04:48 -04:00 committed by GitHub
commit 2bb1a95876
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 8 deletions

View file

@ -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

View file

@ -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"