GPU: Revert unique filter
This commit is contained in:
parent
c48f201a9d
commit
efd48587c3
2
neofetch
2
neofetch
|
@ -1071,7 +1071,7 @@ get_gpu() {
|
||||||
"Linux")
|
"Linux")
|
||||||
# Read GPUs into array.
|
# Read GPUs into array.
|
||||||
IFS=$'\n'
|
IFS=$'\n'
|
||||||
gpus=($(lspci -mm | awk -F '\\"|\\" \\"|\(' '/"Display|"3D|"VGA/ {print $3 " " $4}' | sort -u))
|
gpus=($(lspci -mm | awk -F '\\"|\\" \\"' '/"Display|"3D|"VGA/ {print $3 " " $4}'))
|
||||||
IFS="$old_ifs"
|
IFS="$old_ifs"
|
||||||
|
|
||||||
# Number the GPUs if more than one exists.
|
# Number the GPUs if more than one exists.
|
||||||
|
|
Reference in New Issue