fix: Readd renamed error_not_supported_release function, clean up
This commit is contained in:
parent
370d7d5843
commit
1f084009df
29
quickget
29
quickget
|
@ -177,15 +177,6 @@ os_supported() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
os_supported_release() {
|
|
||||||
if [[ ! " ${RELEASES[*]} " =~ " ${RELEASE} " ]]; then
|
|
||||||
echo -e "ERROR! ${DISPLAY_NAME} ${RELEASE} is not a supported release."
|
|
||||||
echo -n 'Supported releases: '
|
|
||||||
"releases_${OS}"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
os_error_release() {
|
os_error_release() {
|
||||||
echo 'ERROR! You must specify a release.'
|
echo 'ERROR! You must specify a release.'
|
||||||
case ${OS} in
|
case ${OS} in
|
||||||
|
@ -221,6 +212,15 @@ function error_not_supported_os() {
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function error_not_supported_release() {
|
||||||
|
if [[ ! " ${RELEASES[*]} " =~ " ${RELEASE} " ]]; then
|
||||||
|
echo -e "ERROR! ${DISPLAY_NAME} ${RELEASE} is not a supported release."
|
||||||
|
echo -n 'Supported releases: '
|
||||||
|
"releases_${OS}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
function error_not_supported_edition() {
|
function error_not_supported_edition() {
|
||||||
if [[ ! " ${EDITIONS[*]} " =~ " ${EDITION} " ]]; then
|
if [[ ! " ${EDITIONS[*]} " =~ " ${EDITION} " ]]; then
|
||||||
echo -e "ERROR! ${EDITION} is not a supported $(pretty_name "${OS}") edition\n"
|
echo -e "ERROR! ${EDITION} is not a supported $(pretty_name "${OS}") edition\n"
|
||||||
|
@ -280,7 +280,7 @@ function validate_release() {
|
||||||
*) RELEASE_GENERATOR="${1}";;
|
*) RELEASE_GENERATOR="${1}";;
|
||||||
esac
|
esac
|
||||||
RELEASES=$(${RELEASE_GENERATOR})
|
RELEASES=$(${RELEASE_GENERATOR})
|
||||||
os_supported_release
|
error_not_supported_release
|
||||||
}
|
}
|
||||||
|
|
||||||
function list_json() {
|
function list_json() {
|
||||||
|
@ -3546,15 +3546,6 @@ fi
|
||||||
|
|
||||||
LANGS=()
|
LANGS=()
|
||||||
|
|
||||||
os_supported_release() {
|
|
||||||
if [[ ! " ${RELEASES[*]} " =~ " ${RELEASE} " ]]; then
|
|
||||||
echo -e "ERROR! ${DISPLAY_NAME} ${RELEASE} is not a supported release."
|
|
||||||
echo -n 'Supported releases: '
|
|
||||||
"releases_${OS}"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
os_error_edition() {
|
os_error_edition() {
|
||||||
echo -en "ERROR! You must specify an edition.\n - Editions: "
|
echo -en "ERROR! You must specify an edition.\n - Editions: "
|
||||||
#TODO ERROR here
|
#TODO ERROR here
|
||||||
|
|
Loading…
Reference in New Issue