feat: os_error_edition function

This commit is contained in:
Martin Wimpress 2024-04-16 14:11:32 +01:00
commit c23b2afd80
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3
1 changed files with 8 additions and 3 deletions

View File

@ -3662,6 +3662,13 @@ fi
LANGS=() LANGS=()
os_error_edition() {
echo -en "ERROR! You must specify an edition.\n - Editions: "
#TODO ERROR here
"editions_${OS}"
exit 1
}
os_supported_lang() { os_supported_lang() {
echo -e "ERROR! ${LANG} is not a supported $(pretty_name "${OS}") language\n" echo -e "ERROR! ${LANG} is not a supported $(pretty_name "${OS}") language\n"
echo -n ' - Editions: ' echo -n ' - Editions: '
@ -3811,9 +3818,7 @@ if [ -n "${2}" ]; then
exit 1 exit 1
fi fi
else else
echo -en "ERROR! You must specify an edition.\n - Editions: " os_error_edition
editions_"${OS}"
exit 1
fi fi
handle_missing handle_missing