From 16adb863721586292cd9ee665e1d2d2b18b69064 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Thu, 9 May 2024 11:33:06 +0100 Subject: [PATCH] fix: resolve shellcheck SC2001 https://www.shellcheck.net/wiki/SC2001 --- quickget | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickget b/quickget index de9d8e7..293b7dd 100755 --- a/quickget +++ b/quickget @@ -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}" }