diff --git a/openvpn-install.sh b/openvpn-install.sh index 4affa51..be2010e 100755 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -54,7 +54,7 @@ function checkOS () { source /etc/os-release if [[ "$ID" = "centos" ]]; then OS="centos" - if [[ ! $VERSION_ID ~= (7|8) ]]; then + if [[ ! $VERSION_ID =~ (7|8) ]]; then echo "⚠️ Your version of CentOS is not supported." echo "" echo "The script only support CentOS 7."