From c495bdd5c40bef5f7324c350cc714afc4865e666 Mon Sep 17 00:00:00 2001
From: tteckster <tteckster@gmail.com>
Date: Sun, 9 Jul 2023 08:51:10 -0400
Subject: [PATCH] Update pimox-haos-vm.sh

PVE 8 compatible
---
 vm/pimox-haos-vm.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vm/pimox-haos-vm.sh b/vm/pimox-haos-vm.sh
index fff2fa52d..9fc13f2c7 100644
--- a/vm/pimox-haos-vm.sh
+++ b/vm/pimox-haos-vm.sh
@@ -79,7 +79,7 @@ else
   exit
 fi
 function PVE_CHECK() {
-  if [ $(pveversion | grep -c "pve-manager/7\.[2-9]") -eq 0 ]; then
+  if ! pveversion | grep -Eq "pve-manager/(7\.[2-9]|8\.[0-9])"; then
     echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported"
     echo -e "Requires PVE Version 7.2 or higher"
     echo -e "Exiting..."