Correctness for operators

This commit is contained in:
rection 2019-10-19 04:19:47 +02:00
parent 261d713f98
commit b8f0eed80c

View file

@ -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."