GPU: Fix unique cpu filter
This commit is contained in:
parent
c8b7ed6d1b
commit
05503e3914
1 changed files with 1 additions and 1 deletions
2
neofetch
2
neofetch
|
@ -1071,7 +1071,7 @@ get_gpu() {
|
|||
"Linux")
|
||||
# Read GPUs into array.
|
||||
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}' | sort -u))
|
||||
IFS="$old_ifs"
|
||||
|
||||
# Number the GPUs if more than one exists.
|
||||
|
|
Loading…
Reference in a new issue