refactor: update archcraft to it can use the new web_get()
This commit is contained in:
parent
005f3375cd
commit
dbcbd12c80
3
quickget
3
quickget
|
@ -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}"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue