From b717033348d1e8c80647d319dcf5f5df0bc3f365 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Mon, 6 May 2024 11:04:03 +0200 Subject: [PATCH] COOKER_DOWNLOADER: fixed a bug where the sha couldn't be correctly compared --- functions/checks.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/checks.sh b/functions/checks.sh index 40ea6713..3520191e 100644 --- a/functions/checks.sh +++ b/functions/checks.sh @@ -109,7 +109,7 @@ check_for_version_update() { wget -P "$temp_folder" "$latest_cooker_download.sha" # 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 if [ -f "$temp_folder/RetroDECK-cooker.flatpak" ]; then