From 2aa976773c5a0200b33748205180a2cb821da62d Mon Sep 17 00:00:00 2001 From: Michael Rook Date: Tue, 7 Jun 2022 17:12:59 +1000 Subject: [PATCH] Fix issue with Almalinux check failing after inclusion of version 9 --- xo-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xo-install.sh b/xo-install.sh index f0f8e90..a70ca4e 100755 --- a/xo-install.sh +++ b/xo-install.sh @@ -1265,7 +1265,7 @@ function CheckOS { exit 1 fi - if [[ "$OSNAME" == "AlmaLinux" ]] && [[ "$OSVERSION" =~ ^(8|9)$ ]]; then + if [[ "$OSNAME" == "AlmaLinux" ]] && [[ ! "$OSVERSION" =~ ^(8|9)$ ]]; then printfail "Only AlmaLinux 8/9 supported" exit 1 fi