feat: os_error_edition function
This commit is contained in:
commit
c23b2afd80
11
quickget
11
quickget
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue