Install_deps: Do not take sub-versions '6' numbers of RHEL/CentOS versions as main '6' version.

This commit is contained in:
Bastien Montagne 2019-08-30 16:39:36 +02:00
parent 66ec72045f
commit 8a07ec582e
1 changed files with 1 additions and 1 deletions

View File

@ -3454,7 +3454,7 @@ install_RPM() {
$SUDO dnf -y update
elif [ "$RPM" = "RHEL" ]; then
if [ "`grep '6\.' /etc/redhat-release`" ]; then
if [ "`grep '[^.]6\.' /etc/redhat-release`" ]; then
ERROR "Building with GCC 4.4 is not supported!"
exit 1
else