From 370d7d5843aa5c909a55fea588e4f13923ff3c9e Mon Sep 17 00:00:00 2001 From: zen0bit Date: Sun, 21 Apr 2024 08:32:38 +0200 Subject: [PATCH] fix: Readd renamed error_not_supported_editions function, cleanup --- quickget | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/quickget b/quickget index 1a06a45..b5a99a9 100755 --- a/quickget +++ b/quickget @@ -221,7 +221,7 @@ function error_not_supported_os() { exit 1 } -os_supported_edition() { +function error_not_supported_edition() { if [[ ! " ${EDITIONS[*]} " =~ " ${EDITION} " ]]; then echo -e "ERROR! ${EDITION} is not a supported $(pretty_name "${OS}") edition\n" echo -n ' - Editions: ' @@ -3555,18 +3555,6 @@ os_supported_release() { fi } -os_supported_edition() { - if [[ ! " ${EDITIONS[*]} " =~ " ${EDITION} " ]]; then - echo -e "ERROR! ${EDITION} is not a supported $(pretty_name "${OS}") edition\n" - echo -n ' - Editions: ' - for EDITION in "${EDITIONS[@]}"; do - echo -n "${EDITION} " - done - echo "" - exit 1 - fi -} - os_error_edition() { echo -en "ERROR! You must specify an edition.\n - Editions: " #TODO ERROR here @@ -3746,7 +3734,7 @@ if [ -n "${2}" ]; then EDITION=${EDITIONS[0]} if [ -n "${3}" ]; then EDITION="${3}" - os_supported_edition + error_not_supported_edition else os_error_edition fi