fix: resolve shellcheck SC2001

https://www.shellcheck.net/wiki/SC2001
This commit is contained in:
Martin Wimpress 2024-05-09 11:33:06 +01:00
parent 6037e6fde3
commit 7a77c27772
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3

View File

@ -2635,7 +2635,7 @@ function get_vanillaos() {
local HASH_URL=""
local ISO=""
ISO=$(web_pipe "https://api.github.com/repos/Vanilla-OS/live-iso/releases" | grep 'download_url' | grep "${RELEASE}" | head -1 | cut -d'"' -f4)
HASH_URL=$(echo "${ISO}" | sed s'|\.iso|\.sha256\.txt|g')
HASH_URL="${ISO//.iso/.sha256.txt}"
HASH=$(web_pipe "${HASH_URL}" | cut_1)
echo "${ISO} ${HASH}"
}