fix: correct syntax error when detecting old ubuntu releases
This commit is contained in:
parent
9665a11e21
commit
62064c0c13
9
quickget
9
quickget
|
@ -1601,9 +1601,12 @@ function make_vm_config() {
|
||||||
ubuntu*)
|
ubuntu*)
|
||||||
GUEST="linux"
|
GUEST="linux"
|
||||||
IMAGE_TYPE="iso"
|
IMAGE_TYPE="iso"
|
||||||
local SHORT_RELEASE="$(echo "${RELEASE}" | sed s'/\.//g')"
|
# If there is a point in the release, check if it is less than 16.04
|
||||||
if [ ${SHORT_RELEASE} -lt 1604 ]; then
|
if [[ "${RELEASE}" == "*.*" ]]; then
|
||||||
GUEST="linux_old"
|
local SHORT_RELEASE=${RELEASE//./}
|
||||||
|
if [ "${SHORT_RELEASE}" -lt 1604 ]; then
|
||||||
|
GUEST="linux_old"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
windows)
|
windows)
|
||||||
|
|
Loading…
Reference in New Issue