fix syntax error on Rocky Linux check version
This commit is contained in:
parent
80feebed16
commit
c933f192ad
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ function checkOS() {
|
||||||
fi
|
fi
|
||||||
if [[ $ID == "centos" || $ID == "rocky" || $ID == "almalinux" ]]; then
|
if [[ $ID == "centos" || $ID == "rocky" || $ID == "almalinux" ]]; then
|
||||||
OS="centos"
|
OS="centos"
|
||||||
if [[ $VERSION_ID -lt 7 ]]; then
|
if [[ ${VERSION_ID%.*} -lt 7 ]]; then
|
||||||
echo "⚠️ Your version of CentOS is not supported."
|
echo "⚠️ Your version of CentOS is not supported."
|
||||||
echo ""
|
echo ""
|
||||||
echo "The script only support CentOS 7 and CentOS 8."
|
echo "The script only support CentOS 7 and CentOS 8."
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue