fix(quickget): resolve shellcheck warnings in azurelinux and rockylinux

This commit is contained in:
Martin Wimpress 2026-01-25 23:18:33 +00:00
parent 1840c7b7c1
commit 38817e1e6b
No known key found for this signature in database
1 changed files with 3 additions and 2 deletions

View File

@ -2041,7 +2041,8 @@ function get_azurelinux() {
local QEMU_ARCH="x86_64" local QEMU_ARCH="x86_64"
[ "${ARCH}" == "arm64" ] && QEMU_ARCH="aarch64" [ "${ARCH}" == "arm64" ] && QEMU_ARCH="aarch64"
local URL="https://aka.ms/azurelinux-${RELEASE}-${QEMU_ARCH}.iso" local URL="https://aka.ms/azurelinux-${RELEASE}-${QEMU_ARCH}.iso"
local ISO="$(web_redirect "${URL}")" local ISO
ISO="$(web_redirect "${URL}")"
echo "${ISO}" echo "${ISO}"
} }
@ -2908,7 +2909,7 @@ function get_rebornos() {
} }
function get_rockylinux() { function get_rockylinux() {
if ( [[ "${RELEASE}" =~ ^8. ]] || [[ "${RELEASE}" =~ ^10. ]] ) && [[ "${EDITION}" == "dvd" ]]; then if { [[ "${RELEASE}" =~ ^8. ]] || [[ "${RELEASE}" =~ ^10. ]]; } && [[ "${EDITION}" == "dvd" ]]; then
EDITION="dvd1" EDITION="dvd1"
fi fi
local HASH="" local HASH=""