From 62064c0c1348cb69e6cec0f093e85be79a0a497a Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Fri, 19 Apr 2024 15:02:32 +0100 Subject: [PATCH] fix: correct syntax error when detecting old ubuntu releases --- quickget | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/quickget b/quickget index 9438362..518f049 100755 --- a/quickget +++ b/quickget @@ -1601,9 +1601,12 @@ function make_vm_config() { ubuntu*) GUEST="linux" IMAGE_TYPE="iso" - local SHORT_RELEASE="$(echo "${RELEASE}" | sed s'/\.//g')" - if [ ${SHORT_RELEASE} -lt 1604 ]; then - GUEST="linux_old" + # 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 + GUEST="linux_old" + fi fi ;; windows)