GPU: Remove duplicate substitutions
This commit is contained in:
parent
f4b266b5c6
commit
5dddaa0b26
1 changed files with 2 additions and 4 deletions
6
neofetch
6
neofetch
|
@ -1013,6 +1013,8 @@ getgpu() {
|
||||||
gpu="${gpu/* VGA compatible controller: }"
|
gpu="${gpu/* VGA compatible controller: }"
|
||||||
gpu="${gpu/* 3D controller: }"
|
gpu="${gpu/* 3D controller: }"
|
||||||
gpu="${gpu/(rev*)}"
|
gpu="${gpu/(rev*)}"
|
||||||
|
gpu="${gpu/\[}"
|
||||||
|
gpu="${gpu/\]}"
|
||||||
|
|
||||||
case "$gpu" in
|
case "$gpu" in
|
||||||
intel*)
|
intel*)
|
||||||
|
@ -1025,8 +1027,6 @@ getgpu() {
|
||||||
gpu="${gpu/Tahiti PRO}"
|
gpu="${gpu/Tahiti PRO}"
|
||||||
gpu="${gpu/XTX}"
|
gpu="${gpu/XTX}"
|
||||||
gpu="${gpu/ OEM}"
|
gpu="${gpu/ OEM}"
|
||||||
gpu="${gpu/ \[}"
|
|
||||||
gpu="${gpu/\]}"
|
|
||||||
gpu="${gpu/*Radeon/Radeon}"
|
gpu="${gpu/*Radeon/Radeon}"
|
||||||
|
|
||||||
brand="AMD "
|
brand="AMD "
|
||||||
|
@ -1036,8 +1036,6 @@ getgpu() {
|
||||||
gpu="${gpu/NVIDIA Corporation }"
|
gpu="${gpu/NVIDIA Corporation }"
|
||||||
gpu="${gpu/G????M }"
|
gpu="${gpu/G????M }"
|
||||||
gpu="${gpu/G???? }"
|
gpu="${gpu/G???? }"
|
||||||
gpu="${gpu/\[}"
|
|
||||||
gpu="${gpu/\] }"
|
|
||||||
|
|
||||||
brand="NVIDIA "
|
brand="NVIDIA "
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue