mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-25 07:25:38 +00:00
f8aac040f6
and also prepackage DOOOOOM!
13 lines
424 B
Bash
13 lines
424 B
Bash
#!/bin/bash
|
|
|
|
# For the file paths to work correctly, call this script with this command from the cloned repo folder root:
|
|
# sh automation_tools/update_sha.sh
|
|
|
|
rd_manifest=net.retrodeck.retrodeck.yml
|
|
sha_update_list=automation_tools/sha_to_update.cfg
|
|
|
|
while IFS="," read -r url placeholder
|
|
do
|
|
hash=$(curl -sL "$url" | sha256sum | cut -d ' ' -f1)
|
|
sed -i 's^'"$placeholder"'^'"$hash"'^' $rd_manifest
|
|
done < $sha_update_list |