mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Fix validate_release() for Ubuntu flavours
This commit is contained in:
parent
8924d5cac4
commit
5ef7a85687
1 changed files with 6 additions and 1 deletions
7
quickget
7
quickget
|
@ -73,10 +73,15 @@ function pretty_name() {
|
||||||
|
|
||||||
function validate_release() {
|
function validate_release() {
|
||||||
local DISPLAY_NAME=""
|
local DISPLAY_NAME=""
|
||||||
local RELEASE_GENERATOR="${1}"
|
local RELEASE_GENERATOR=""
|
||||||
local RELEASES=""
|
local RELEASES=""
|
||||||
|
|
||||||
DISPLAY_NAME="$(pretty_name "${OS}")"
|
DISPLAY_NAME="$(pretty_name "${OS}")"
|
||||||
|
case ${OS} in
|
||||||
|
*ubuntu*) RELEASE_GENERATOR="releases_ubuntu";;
|
||||||
|
*) RELEASE_GENERATOR="${1}";;
|
||||||
|
esac
|
||||||
|
|
||||||
RELEASES=$(${RELEASE_GENERATOR})
|
RELEASES=$(${RELEASE_GENERATOR})
|
||||||
if [[ "${RELEASES}" != *"${RELEASE}"* ]]; then
|
if [[ "${RELEASES}" != *"${RELEASE}"* ]]; then
|
||||||
echo -e "ERROR! ${DISPLAY_NAME} ${RELEASE} is not a supported release.\n"
|
echo -e "ERROR! ${DISPLAY_NAME} ${RELEASE} is not a supported release.\n"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue