From 7e12473f8095261c388ba08ac0c507f7c198afa3 Mon Sep 17 00:00:00 2001 From: Ryan Hughes Date: Sun, 28 Dec 2025 13:27:37 -0500 Subject: [PATCH] Don't continue if we don't have a GPU --- install/config/hardware/nvidia.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install/config/hardware/nvidia.sh b/install/config/hardware/nvidia.sh index 0fbd4616..dba1e6b2 100644 --- a/install/config/hardware/nvidia.sh +++ b/install/config/hardware/nvidia.sh @@ -11,7 +11,11 @@ if [ -n "$NVIDIA" ]; then # Pascal (10xx) and Maxwell (9xx) use legacy branch that can only be installed from AUR PACKAGES=(nvidia-580xx-dkms nvidia-580xx-utils lib32-nvidia-580xx-utils) fi - # < GTX 9, See: https://wiki.archlinux.org/title/NVIDIA + # Bail if no supported GPU + if [ -z "${PACKAGES+x}" ]; then + echo "No compatible driver for your NVIDIA GPU. See: https://wiki.archlinux.org/title/NVIDIA" + exit 0 + fi pacman -S --needed --noconfirm "$KERNEL_HEADERS" "${PACKAGES[@]}"