From bc399df328edd096fa4a1f2d097e004b406e63a2 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Sun, 12 May 2024 13:18:52 +0100 Subject: [PATCH] fix: correct the detection of old Ubuntu releases --- quickget | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/quickget b/quickget index 5e089ad..ec9cbc8 100755 --- a/quickget +++ b/quickget @@ -1406,9 +1406,8 @@ function make_vm_config() { GUEST="linux" IMAGE_TYPE="iso" # If there is a point in the release, check if it is less than 16.04 - if [[ "${RELEASE}" == "*.*" ]]; then - local SHORT_RELEASE=${RELEASE//./} - if [ "${SHORT_RELEASE}" -lt 1604 ]; then + if [[ "${RELEASE}" != *"daily"* ]]; then + if [ "${RELEASE//./}" -lt 1604 ]; then GUEST="linux_old" fi fi