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
5
quickget
5
quickget
|
|
@ -4108,9 +4108,14 @@ if [ -n "${2}" ]; then
|
|||
fi
|
||||
# Now that EDITION is known, validate architecture support
|
||||
if ! is_arch_supported "${OS}" "${ARCH}"; then
|
||||
if [ "${OPERATION}" == "test" ] || [ "${OPERATION}" == "show" ]; then
|
||||
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
|
||||
handle_missing
|
||||
VM_PATH="${OS}-${RELEASE}-${EDITION}"
|
||||
create_vm "$("get_${OS}" "${EDITION}")"
|
||||
|
|
|
|||
Loading…
Reference in New Issue