Skip to content

Commit

Permalink
fix syntax error on Rocky Linux check version
Browse files Browse the repository at this point in the history
  • Loading branch information
David Salbei committed Nov 20, 2023
1 parent 80feebe commit c933f19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openvpn-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit c933f19

Please sign in to comment.