style(quickget): make not supported release and edition output consistent
This commit is contained in:
parent
e1a46b9b5a
commit
b342e0ecb7
6
quickget
6
quickget
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue