mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-22 14:05:39 +00:00
COOKER_DOWNLOADER: fixed a bug where the sha couldn't be correctly compared
This commit is contained in:
parent
8878d6cc8a
commit
b717033348
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue