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 committed by Martin Wimpress
parent ef55e74317
commit 16adb86372
1 changed files with 1 additions and 1 deletions

View File

@ -2635,7 +2635,7 @@ function get_vanillaos() {
local HASH_URL="" local HASH_URL=""
local ISO="" 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) 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) HASH=$(web_pipe "${HASH_URL}" | cut_1)
echo "${ISO} ${HASH}" echo "${ISO} ${HASH}"
} }