From 3d803834c1b51f19146d06092573e79dbb2acc1e Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 19 Feb 2020 11:43:01 +0200 Subject: [PATCH] neofetch: Fix GPU driver error. Closes #1411 --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 104cd59e..90b8132b 100755 --- a/neofetch +++ b/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