From 6cb81290303a4ebfd6c501705037fc438dd14656 Mon Sep 17 00:00:00 2001 From: tteckster Date: Tue, 20 Jun 2023 20:10:25 -0400 Subject: [PATCH] Update pve8-upgrade.sh fix version check --- misc/pve8-upgrade.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/pve8-upgrade.sh b/misc/pve8-upgrade.sh index db15e016..9e26ec02 100644 --- a/misc/pve8-upgrade.sh +++ b/misc/pve8-upgrade.sh @@ -179,7 +179,7 @@ if ! command -v pveversion >/dev/null 2>&1; then exit fi -if [ $(pveversion | grep "pve-manager/(7.4-13|7.4-14|7.4-15)" | wc -l) -ne 1 ]; then +if [[ $(pveversion | grep -E "pve-manager/(7.4-13|7.4-14|7.4-15)") ]]; then header_info msg_error "This version of Proxmox Virtual Environment is not supported" echo -e " PVE Version 7.4-13 or higher is required."