Fix syntax error on Rocky Linux version check (#1182)

Co-authored-by: David Salbei <david@incolab.fr>
pull/550/merge
David Salbeï 2023-11-20 21:19:13 +01:00 committed by GitHub
parent 1a249c621d
commit 651e36c6cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ function checkOS() {
fi
if [[ $ID == "centos" || $ID == "rocky" || $ID == "almalinux" ]]; then
OS="centos"
if [[ $VERSION_ID -lt 7 ]]; then
if [[ ${VERSION_ID%.*} -lt 7 ]]; then
echo "⚠️ Your version of CentOS is not supported."
echo ""
echo "The script only support CentOS 7 and CentOS 8."