style(quickget): make not supported release and edition output consistent

This commit is contained in:
Martin Wimpress 2024-05-07 11:11:23 +01:00 committed by Martin Wimpress
parent e1a46b9b5a
commit b342e0ecb7
1 changed files with 3 additions and 3 deletions

View File

@ -199,8 +199,8 @@ function error_specify_path() {
function error_not_supported_release() {
if [[ ! "${RELEASES[*]}" =~ ${RELEASE} ]]; then
echo -e "ERROR! ${DISPLAY_NAME} ${RELEASE} is not a supported release."
echo -n 'Supported releases: '
echo -e "ERROR! ${DISPLAY_NAME} ${RELEASE} is not a supported release.\n"
echo -n ' - Supported releases: '
"releases_${OS}"
exit 1
fi
@ -209,7 +209,7 @@ function error_not_supported_release() {
function error_not_supported_edition() {
if [[ ! "${EDITIONS[*]}" =~ ${EDITION} ]]; then
echo -e "ERROR! ${EDITION} is not a supported $(pretty_name "${OS}") edition\n"
echo -n ' - Editions: '
echo -n ' - Supported editions: '
for EDITION in "${EDITIONS[@]}"; do
echo -n "${EDITION} "
done