From a09be6a9769de5bfa1e867aa66f54dc4a95d89f6 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Sun, 28 Apr 2024 03:18:23 +0100 Subject: [PATCH] refactor: update handle_missing() for fedora 40 --- quickget | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/quickget b/quickget index 1b1a93c..15181aa 100755 --- a/quickget +++ b/quickget @@ -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 - 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 + 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;; + esac } function validate_release() {