fix(quickget): skip unsupported architectures for test/show operations
- If architecture is unsupported and OPERATION is "test" or "show", call test_result with SKIP and exit 0 - Keep existing error and exit 1 for non-test/show operations Signed-off-by: Martin Wimpress <martin@wimpress.org>
This commit is contained in:
parent
61d0bec3ba
commit
f1c66b45b9
9
quickget
9
quickget
|
|
@ -4108,8 +4108,13 @@ if [ -n "${2}" ]; then
|
||||||
fi
|
fi
|
||||||
# Now that EDITION is known, validate architecture support
|
# Now that EDITION is known, validate architecture support
|
||||||
if ! is_arch_supported "${OS}" "${ARCH}"; then
|
if ! is_arch_supported "${OS}" "${ARCH}"; then
|
||||||
echo "ERROR! $(pretty_name "${OS}") ${EDITION} is not available for ${ARCH} architecture."
|
if [ "${OPERATION}" == "test" ] || [ "${OPERATION}" == "show" ]; then
|
||||||
exit 1
|
test_result "${OS}" "${RELEASE}" "${EDITION}" "" "SKIP" "(not available for ${ARCH})"
|
||||||
|
exit 0
|
||||||
|
else
|
||||||
|
echo "ERROR! $(pretty_name "${OS}") ${EDITION} is not available for ${ARCH} architecture."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
handle_missing
|
handle_missing
|
||||||
VM_PATH="${OS}-${RELEASE}-${EDITION}"
|
VM_PATH="${OS}-${RELEASE}-${EDITION}"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue