mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 17:09:21 +00:00
neofetch: Fix GPU driver error. Closes #1411
This commit is contained in:
2
neofetch
2
neofetch
@@ -3657,7 +3657,7 @@ get_gpu_driver() {
|
||||
case $os in
|
||||
"Linux")
|
||||
gpu_driver="$(lspci -nnk | awk -F ': ' \
|
||||
'/Display|3D|VGA/{nr[NR+2]}; NR in nr {printf $2 ", "}')"
|
||||
'/Display|3D|VGA/{nr[NR+2]}; NR in nr {printf $2 ", "; exit}')"
|
||||
gpu_driver="${gpu_driver%, }"
|
||||
|
||||
if [[ "$gpu_driver" == *"nvidia"* ]]; then
|
||||
|
Reference in New Issue
Block a user