Merge pull request #79 from olgkv/fix/gpu-detection

fix(detect): Correctly assign gpu_info before use
This commit is contained in:
David Heinemeier Hansson
2025-07-06 14:28:40 -07:00
committed by GitHub

View File

@ -9,7 +9,8 @@
# ==============================================================================
# --- GPU Detection ---
if [ -n "$(lspci | grep -i 'nvidia')" ]; then
gpu_info=$(lspci | grep -i 'nvidia')
if [ -n "$gpu_info" ]; then
# --- Driver Selection ---
# Turing (16xx, 20xx), Ampere (30xx), Ada (40xx), and newer recommend the open-source kernel modules
if echo "$gpu_info" | grep -q -E "RTX [2-9][0-9]|GTX 16"; then