More automation troubleshooting

This commit is contained in:
icenine451 2023-04-13 15:15:56 -04:00
parent b3e750cb86
commit ecd782c1bd
2 changed files with 5 additions and 9 deletions

View file

@ -1 +1,3 @@
https://buildbot.libretro.com/assets/cores/DOOM/Doom%20%28Shareware%29.zip^DOOMSHAPLACEHOLDER # The proper format for this file is
# URL^PLACEHOLDERTEXT
https://buildbot.libretro.com/assets/cores/DOOM/Doom%20%28Shareware%29.zip^DOOMSHA

View file

@ -5,7 +5,6 @@
rd_manifest=${GITHUB_WORKSPACE}/net.retrodeck.retrodeck.yml rd_manifest=${GITHUB_WORKSPACE}/net.retrodeck.retrodeck.yml
sha_update_list=${GITHUB_WORKSPACE}/automation_tools/sha_update_list.cfg sha_update_list=${GITHUB_WORKSPACE}/automation_tools/sha_update_list.cfg
counter=5
echo "Manifest location: $rd_manifest" echo "Manifest location: $rd_manifest"
echo "Hash update list location: $sha_update_list" echo "Hash update list location: $sha_update_list"
@ -14,12 +13,6 @@ echo "Update list contents:"
cat "$sha_update_list" cat "$sha_update_list"
echo echo
while [ $counter -gt 0 ]
do
echo $counter
counter=$(( $counter - 1 ))
done
while IFS="^" read -r url placeholder while IFS="^" read -r url placeholder
do do
echo echo
@ -27,5 +20,6 @@ do
echo "URL to hash: $url" echo "URL to hash: $url"
echo echo
hash=$(curl -sL "$url" | sha256sum | cut -d ' ' -f1) hash=$(curl -sL "$url" | sha256sum | cut -d ' ' -f1)
echo "Hash found: $hash"
sed -i 's^'"$placeholder"'^'"$hash"'^' $rd_manifest sed -i 's^'"$placeholder"'^'"$hash"'^' $rd_manifest
done < <(cat "$sha_update_list") done < "$sha_update_list"