From 5ef7a856871661ec3774b0c105c9dc7aff4c86b4 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Mon, 21 Feb 2022 15:35:10 +0000 Subject: [PATCH] Fix validate_release() for Ubuntu flavours --- quickget | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/quickget b/quickget index 9f6dd34..7c987de 100755 --- a/quickget +++ b/quickget @@ -73,10 +73,15 @@ function pretty_name() { function validate_release() { local DISPLAY_NAME="" - local RELEASE_GENERATOR="${1}" + local RELEASE_GENERATOR="" local RELEASES="" DISPLAY_NAME="$(pretty_name "${OS}")" + case ${OS} in + *ubuntu*) RELEASE_GENERATOR="releases_ubuntu";; + *) RELEASE_GENERATOR="${1}";; + esac + RELEASES=$(${RELEASE_GENERATOR}) if [[ "${RELEASES}" != *"${RELEASE}"* ]]; then echo -e "ERROR! ${DISPLAY_NAME} ${RELEASE} is not a supported release.\n"