COOKER_DOWNLOADER: fixed a bug where the sha couldn't be correctly compared

This commit is contained in:
XargonWan 2024-05-06 11:04:03 +02:00
parent 8878d6cc8a
commit b717033348

View file

@ -109,7 +109,7 @@ check_for_version_update() {
wget -P "$temp_folder" "$latest_cooker_download.sha" wget -P "$temp_folder" "$latest_cooker_download.sha"
# Get the expected SHA checksum from the SHA file # Get the expected SHA checksum from the SHA file
expected_sha=$(cat "$temp_folder/RetroDECK-cooker.flatpak.sha") local expected_sha=$(cat "$temp_folder/$(basename "$latest_cooker_download").sha" | awk '{print $1}')
# Check if the file exists # Check if the file exists
if [ -f "$temp_folder/RetroDECK-cooker.flatpak" ]; then if [ -f "$temp_folder/RetroDECK-cooker.flatpak" ]; then