fix: correct the detection of old Ubuntu releases
This commit is contained in:
parent
0b5050511b
commit
bc399df328
5
quickget
5
quickget
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue