Skip to content

Commit

Permalink
Fix syntax error on Rocky Linux version check (#1182)
Browse files Browse the repository at this point in the history
Co-authored-by: David Salbei <[email protected]>
  • Loading branch information
Salbei and David Salbei authored Nov 20, 2023
1 parent 1a249c6 commit 651e36c
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 651e36c

Please sign in to comment.