From 74e8facfe274b275a50bba57d96523eb7e963ded Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 26 Apr 2017 08:12:35 +1000 Subject: [PATCH] GPU: Correctly filter out duplicate GPU names. --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 491da0f3..938f0b96 100755 --- a/neofetch +++ b/neofetch @@ -1071,7 +1071,7 @@ get_gpu() { "Linux") # Read GPUs into array. IFS=$'\n' - gpus=($(lspci -mm | awk -F '\\"|\\" \\"' '!a[$0]++ && /"Display|"3D|"VGA/ {print $3 " " $4}')) + gpus=($(lspci -mm | awk -F '\\"|\\" \\"' '/"Display|"3D|"VGA/ {print $3 " " $4}' | sort -u)) IFS="$old_ifs" # Number the GPUs if more than one exists.