From d72f007b9c7f954e1f966d7e5818067575d39ae8 Mon Sep 17 00:00:00 2001 From: zen0bit Date: Sun, 21 Apr 2024 10:46:13 +0200 Subject: [PATCH] fix: Readd renamed error_specify_edition function, cleanup --- quickget | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/quickget b/quickget index 79350bc..05ba84b 100755 --- a/quickget +++ b/quickget @@ -211,6 +211,13 @@ function error_specify_release() { exit 1 } +function error_specify_edition() { + echo -en "ERROR! You must specify an edition.\n - Editions: " + #TODO ERROR here + "editions_${OS}" + exit 1 +} + function error_not_supported_os() { echo -e "ERROR! ${OS} is not a supported OS.\n" os_support | fold -s -w "$(tput cols)" @@ -238,13 +245,6 @@ function error_not_supported_edition() { fi } -os_error_edition() { - echo -en "ERROR! You must specify an edition.\n - Editions: " - #TODO ERROR here - "editions_${OS}" - exit 1 -} - function error_not_supported_lang() { echo -e "ERROR! ${LANG} is not a supported $(pretty_name "${OS}") language\n" echo -n ' - Editions: ' @@ -3487,13 +3487,6 @@ fi LANGS=() -os_error_edition() { - echo -en "ERROR! You must specify an edition.\n - Editions: " - #TODO ERROR here - "editions_${OS}" - exit 1 -} - handle_missing() { # Handle odd missing Fedora combinations if [[ $OS == fedora ]] ; then @@ -3575,7 +3568,7 @@ if [ -n "${2}" ]; then EDITION="${3}" error_not_supported_edition else - os_error_edition + error_specify_edition fi handle_missing VM_PATH="${OS}-${RELEASE}-${EDITION}"