From 8af136338afa4e6563e1acf04d57ee3c214c5194 Mon Sep 17 00:00:00 2001 From: tteckster Date: Fri, 9 Jun 2023 06:30:37 -0400 Subject: [PATCH] Update build.func Prepare for Proxmox Virtual Environment 8 --- misc/build.func | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/build.func b/misc/build.func index dce870e0..e7be8ae6 100644 --- a/misc/build.func +++ b/misc/build.func @@ -54,7 +54,7 @@ msg_error() { # This function checks the version of Proxmox Virtual Environment (PVE) and exits if the version is not supported. pve_check() { - if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + if ! pveversion | grep -Eq "pve-manager/(7\.[0-9]|8\.[0-9])"; then echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" echo -e "Requires PVE Version 7.0 or higher" echo -e "Exiting..."