mirror of
https://github.com/angristan/openvpn-install.git
synced 2024-12-21 15:17:50 +01:00
Fix syntax error on Rocky Linux version check (#1182)
Co-authored-by: David Salbei <david@incolab.fr>
This commit is contained in:
parent
1a249c621d
commit
651e36c6cb
@ -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."
|
||||
|
Loading…
Reference in New Issue
Block a user