Merge pull request #962 from dylanaraps/ati
gpu: Fix ATI/AMD branding issue.
This commit is contained in:
commit
b4fc29e6f6
6
neofetch
6
neofetch
|
@ -2068,6 +2068,10 @@ get_gpu() {
|
|||
|
||||
case "$gpu" in
|
||||
*"advanced"*)
|
||||
brand="${gpu/*AMD*ATI*/AMD ATI}"
|
||||
brand="${brand:-${gpu/*AMD*/AMD}}"
|
||||
brand="${brand:-${gpu/*ATI*/ATi}}"
|
||||
|
||||
gpu="${gpu/'[AMD/ATI]' }"
|
||||
gpu="${gpu/'[AMD]' }"
|
||||
gpu="${gpu/OEM }"
|
||||
|
@ -2075,7 +2079,7 @@ get_gpu() {
|
|||
gpu="${gpu/ \/ *}"
|
||||
gpu="${gpu/*\[}"
|
||||
gpu="${gpu/\]*}"
|
||||
gpu="AMD $gpu"
|
||||
gpu="$brand $gpu"
|
||||
;;
|
||||
|
||||
*"nvidia"*)
|
||||
|
|
Reference in New Issue