mirror of
https://github.com/quickemu-project/quickemu.git
synced 2024-06-03 05:25:32 +02:00
fix: Readd renamed error_specify_edition function, cleanup
This commit is contained in:
parent
937f68e01f
commit
d72f007b9c
23
quickget
23
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}"
|
||||
|
|
Loading…
Reference in New Issue
Block a user