gpu: Fix ATI/AMD branding issue.
This commit is contained in:
parent
dcd7171c92
commit
da94f65b8c
1 changed files with 3 additions and 1 deletions
4
neofetch
4
neofetch
|
@ -1313,6 +1313,8 @@ get_gpu() {
|
||||||
|
|
||||||
case "$gpu" in
|
case "$gpu" in
|
||||||
*"advanced"*)
|
*"advanced"*)
|
||||||
|
brand="${gpu/*AMD*/AMD}"
|
||||||
|
brand="${brand:-${gpu/*ATI*/ATi}}"
|
||||||
gpu="${gpu/'[AMD/ATI]' }"
|
gpu="${gpu/'[AMD/ATI]' }"
|
||||||
gpu="${gpu/'[AMD]' }"
|
gpu="${gpu/'[AMD]' }"
|
||||||
gpu="${gpu/OEM }"
|
gpu="${gpu/OEM }"
|
||||||
|
@ -1320,7 +1322,7 @@ get_gpu() {
|
||||||
gpu="${gpu/ \/ *}"
|
gpu="${gpu/ \/ *}"
|
||||||
gpu="${gpu/*\[}"
|
gpu="${gpu/*\[}"
|
||||||
gpu="${gpu/\]*}"
|
gpu="${gpu/\]*}"
|
||||||
gpu="AMD $gpu"
|
gpu="$brand $gpu"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*"nvidia"*)
|
*"nvidia"*)
|
||||||
|
|
Loading…
Reference in a new issue