refactor: update handle_missing() for fedora 40

This commit is contained in:
Martin Wimpress 2024-04-28 03:18:23 +01:00 committed by Martin Wimpress
parent 0f3196ad45
commit a09be6a976
1 changed files with 8 additions and 8 deletions

View File

@ -259,14 +259,14 @@ function error_not_supported_lang() {
function handle_missing() {
# Handle odd missing Fedora combinations
if [[ $OS == fedora ]] ; then
if [[ ${RELEASE} = "33" && ${EDITION} = "i3" ]] || [[ ${RELEASE} = "34" && ${EDITION} = "Cinnamon" ]] || [[ "${RELEASE}" < "39" && ${EDITION} = "Onyx" ]]; then
case "${OS}" in
fedora)
if [[ "${RELEASE}" -lt 40 && "${EDITION}" == "Onyx" ]] || [[ "${RELEASE}" -lt 40 && "${EDITION}" == "Sericea" ]]; then
echo "ERROR! Unsupported combination"
echo " Fedora ${RELEASE} ${EDITION} is not available, please choose another Release or Edition"
exit 1;
fi
fi
# Handle missing Manjaro Sway minimal
exit 1
fi;;
esac
}
function validate_release() {