From b8f0eed80cad0dac849cea9b65ac099ecf10bed9 Mon Sep 17 00:00:00 2001 From: rection Date: Sat, 19 Oct 2019 04:19:47 +0200 Subject: [PATCH] Correctness for operators --- openvpn-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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."