refactor: update archcraft to it can use the new web_get()

This commit is contained in:
Martin Wimpress 2024-04-20 10:41:13 +01:00 committed by Martin Wimpress
parent 005f3375cd
commit dbcbd12c80
1 changed files with 1 additions and 2 deletions

View File

@ -1832,8 +1832,7 @@ function get_archlinux() {
function get_archcraft() {
local HASH=""
local URL=""
# Check where the URL redirects using curl. Output to a nonexistent directory so it's not possible to successfully download the image
URL=$(curl -Lfs "https://sourceforge.net/projects/archcraft/files/latest/download" -w %{url_effective} -o /this/is/a/nonexistent/directory/$RANDOM/$RANDOM)
URL="https://sourceforge.net/projects/archcraft/files/latest/download"
echo "${URL} ${HASH}"
}