neofetch: Fix GPU driver error. Closes #1411

This commit is contained in:
Dylan Araps 2020-02-19 11:43:01 +02:00
parent 9459ca32db
commit 3d803834c1
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 1 additions and 1 deletions

View File

@ -3657,7 +3657,7 @@ get_gpu_driver() {
case $os in case $os in
"Linux") "Linux")
gpu_driver="$(lspci -nnk | awk -F ': ' \ 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%, }" gpu_driver="${gpu_driver%, }"
if [[ "$gpu_driver" == *"nvidia"* ]]; then if [[ "$gpu_driver" == *"nvidia"* ]]; then