WORKAROUND for Debian derivatives systems

The DISTRO_MAJOR_VERSION is not properly set for Debian's like
systems.
The bootstrap script fails with
'ERROR: End of life distributions are not supported.'
when the derivated system have a version number less than 7.
This commit is contained in:
Yann Masson 2017-11-11 18:19:53 +01:00
parent 3ab3d701f8
commit 81b13a9acc

View file

@ -1445,6 +1445,7 @@ __debian_derivatives_translation() {
echodebug "Detected Debian $_debian_version derivative"
DISTRO_NAME_L="debian"
DISTRO_VERSION="$_debian_version"
DISTRO_MAJOR_VERSION="$(echo "$DISTRO_VERSION" | sed 's/^\([0-9]*\).*/\1/g')"
fi
fi
}