Compare commits

..

No commits in common. "7eba5494eaadec7fecf7e1c73d0643fc0411aff4" and "5bf0944dd986919908736ef780b8bfead8c01b2d" have entirely different histories.

1 changed files with 6 additions and 4 deletions

View File

@ -86,13 +86,15 @@ amd() {
echo -e "\n To apply the changes, the system will need to be rebooted.\n" echo -e "\n To apply the changes, the system will need to be rebooted.\n"
} }
if ! command -v pveversion >/dev/null 2>&1; then if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then
header_info echo -e "${CROSS} Proxmox Virtual Environment Not Detected"
msg_error "\n No PVE Detected!\n" echo -e "Exiting..."
sleep 2
exit exit
fi fi
msg_info "Checking CPU Vendor" msg_info "Checking CPU Vendor"
cpu=$(lscpu | grep -oP 'Vendor ID:\s*\K\S+' | head -n 1) cpu=$(lscpu | grep -oP 'Vendor ID:\s*\K\S+')
if [ "$cpu" == "GenuineIntel" ]; then if [ "$cpu" == "GenuineIntel" ]; then
msg_ok "${cpu} was detected" msg_ok "${cpu} was detected"
intel intel