fix: correct the detection of old Ubuntu releases

This commit is contained in:
Martin Wimpress 2024-05-12 13:18:52 +01:00 committed by Martin Wimpress
parent 0b5050511b
commit bc399df328
1 changed files with 2 additions and 3 deletions

View File

@ -1406,9 +1406,8 @@ function make_vm_config() {
GUEST="linux" GUEST="linux"
IMAGE_TYPE="iso" IMAGE_TYPE="iso"
# If there is a point in the release, check if it is less than 16.04 # If there is a point in the release, check if it is less than 16.04
if [[ "${RELEASE}" == "*.*" ]]; then if [[ "${RELEASE}" != *"daily"* ]]; then
local SHORT_RELEASE=${RELEASE//./} if [ "${RELEASE//./}" -lt 1604 ]; then
if [ "${SHORT_RELEASE}" -lt 1604 ]; then
GUEST="linux_old" GUEST="linux_old"
fi fi
fi fi