From aa4fcf7345671f1c3c27dc3576023084e8674f7f Mon Sep 17 00:00:00 2001 From: Jan Strube Date: Mon, 12 Sep 2022 16:19:46 -0700 Subject: [PATCH] Update b2install-prepare From: https://stackoverflow.com/questions/8654051/how-can-i-compare-two-floating-point-numbers-in-bash Fixes #1 --- b2install-prepare | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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