From 15ee58089bb2f77d797e060aadb4896ed30fe0b5 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Sat, 24 Jan 2026 01:38:01 +0000 Subject: [PATCH] fix(quickget): extract Archcraft version folder from redirect URL The hash URL was incorrectly using 'v${RELEASE}' (e.g., 'vlatest') instead of extracting the actual version folder from the redirect URL. Since releases_archcraft returns 'latest', the download redirect goes to a versioned folder like 'v25.10', but the hash file lookup used 'vlatest' which doesn't exist. Extract the version folder from the redirect URL to construct the correct hash file path. --- quickget | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/quickget b/quickget index 817c5b4..9ad0345 100755 --- a/quickget +++ b/quickget @@ -1602,10 +1602,12 @@ function get_archcraft() { local HASH="" local ISO="" local URL="" + local VERSION_FOLDER="" URL="https://sourceforge.net/projects/archcraft/files/${RELEASE}/download" URL="$(web_redirect "${URL}" | cut -d? -f1)" ISO="$(basename "${URL}")" - HASH=$(web_pipe "https://sourceforge.net/projects/archcraft/files/v${RELEASE}/${ISO}.sha256sum" | cut -d' ' -f1) + VERSION_FOLDER="$(dirname "${URL}" | xargs basename)" + HASH=$(web_pipe "https://sourceforge.net/projects/archcraft/files/${VERSION_FOLDER}/${ISO}.sha256sum" | cut -d' ' -f1) echo "${URL} ${HASH}" }