From bfd51941185dc965652e3b58280e8a1e0d866b7f Mon Sep 17 00:00:00 2001 From: tteckster Date: Tue, 20 Jun 2023 15:54:38 -0400 Subject: [PATCH] Update microcode.sh PVE8 compatible --- misc/microcode.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/misc/microcode.sh b/misc/microcode.sh index 5d799b81..c31d88d9 100644 --- a/misc/microcode.sh +++ b/misc/microcode.sh @@ -86,13 +86,11 @@ amd() { echo -e "\n To apply the changes, the system will need to be rebooted.\n" } -if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then - echo -e "${CROSS} Proxmox Virtual Environment Not Detected" - echo -e "Exiting..." - sleep 2 +if ! command -v pveversion >/dev/null 2>&1; then + header_info + msg_error "\n No PVE Detected!\n" exit fi - msg_info "Checking CPU Vendor" cpu=$(lscpu | grep -oP 'Vendor ID:\s*\K\S+') if [ "$cpu" == "GenuineIntel" ]; then