diff --git a/b2install-prepare b/b2install-prepare index 062d8f2..41a172b 100755 --- a/b2install-prepare +++ b/b2install-prepare @@ -111,7 +111,7 @@ elif [ $OS_RELEASE_ID == "debian" ]; then INSTALL_CMD="apt-get install -y" fi -elif [[ $OS_RELEASE_ID_LIKE = *rhel* ]] && [ $OS_RELEASE_VERSION -ge 8 ]; then +elif [[ $OS_RELEASE_ID_LIKE = *rhel* ]] && [ ${OS_RELEASE_VERSION%.*} -ge 8 ]; then # CentOS, RHEL starting with version 8 PACKAGES="binutils gcc gcc-c++ git make patch perl-devel python2 subversion tar gzip bzip2 bzip2-devel xz unzip wget libpng-devel libX11-devel