From da60af07ab51082e471bfe5cafb44d705cac0dce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roni=20V=C3=A4yrynen?= Date: Sun, 16 Oct 2022 12:30:06 +0300 Subject: [PATCH] fix: missing if not condition in centos version check --- xo-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xo-install.sh b/xo-install.sh index cf8c9d5..cb2c2bf 100755 --- a/xo-install.sh +++ b/xo-install.sh @@ -1263,7 +1263,7 @@ function CheckOS { exit 1 fi - if [[ "$OSNAME" == "CentOS" ]] && [[ "$OSVERSION" =~ ^(8|9)$ ]]; then + if [[ "$OSNAME" == "CentOS" ]] && [[ ! "$OSVERSION" =~ ^(8|9)$ ]]; then printfail "Only CentOS 8/9 supported" exit 1 fi