From 5bbfdd1b54f680437fd17902b8395e363dfe7e98 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Sat, 24 Jan 2026 23:18:47 +0000 Subject: [PATCH] fix(quickget): validate architecture before attempting download Signed-off-by: Martin Wimpress --- quickget | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/quickget b/quickget index 9fe1760..501e1ac 100755 --- a/quickget +++ b/quickget @@ -4064,6 +4064,17 @@ if [ "${CHECK_ALL_ARCH}" == "true" ] && [ -n "${2}" ]; then exit 0 fi +# Validate architecture support before attempting download +if ! is_arch_supported "${OS}" "${ARCH}"; then + if [ "${OPERATION}" == "test" ] || [ "${OPERATION}" == "show" ]; then + test_result "${OS}" "${2:-}" "${3:-}" "" "SKIP" "(not available for ${ARCH})" + exit 0 + else + echo "ERROR! $(pretty_name "${OS}") is not available for ${ARCH} architecture." + exit 1 + fi +fi + if [ -n "${2}" ]; then RELEASE="${2}" VM_PATH="${OS}-${RELEASE}"