From d3ff25f51c8e851e3524183728d21a2aecca2b52 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Mon, 6 May 2024 10:47:48 +0200 Subject: [PATCH] COOKER_DOWNLOADER: fixed a bug where it was getting a malformed url due to the sha file presence --- functions/checks.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/checks.sh b/functions/checks.sh index aef37e41..40ea6713 100644 --- a/functions/checks.sh +++ b/functions/checks.sh @@ -99,7 +99,7 @@ check_for_version_update() { log i "Selected: \"Yes\"" configurator_generic_dialog "RetroDECK Online Update" "The update process may take several minutes.\n\nAfter the update is complete, RetroDECK will close. When you run it again you will be using the latest version." ( - local latest_cooker_download=$(curl --silent https://api.github.com/repos/XargonWan/$update_repo/releases/latest | grep '"browser_download_url":' | sed -E 's/.*"([^"]+)".*/\1/') + local latest_cooker_download=$(curl --silent https://api.github.com/repos/XargonWan/RetroDECK-cooker/releases/latest | grep '"browser_download_url":.*flatpak' | grep -v '\.sha' | sed -E 's/.*"([^"]+)".*/\1/') local temp_folder="$rdhome/RetroDECK_Updates" create_dir $temp_folder log i "Downloading version \"$online_version\" in \"$temp_folder/RetroDECK-cooker.flatpak\" from url: \"$latest_cooker_download\""