From da94f65b8c0fbe2cc15109ef8a73b7f183edddc4 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 25 Apr 2018 11:39:03 +1000 Subject: [PATCH 1/2] gpu: Fix ATI/AMD branding issue. --- neofetch | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 92c17f03..b94fb27c 100755 --- a/neofetch +++ b/neofetch @@ -1313,6 +1313,8 @@ get_gpu() { case "$gpu" in *"advanced"*) + brand="${gpu/*AMD*/AMD}" + brand="${brand:-${gpu/*ATI*/ATi}}" gpu="${gpu/'[AMD/ATI]' }" gpu="${gpu/'[AMD]' }" gpu="${gpu/OEM }" @@ -1320,7 +1322,7 @@ get_gpu() { gpu="${gpu/ \/ *}" gpu="${gpu/*\[}" gpu="${gpu/\]*}" - gpu="AMD $gpu" + gpu="$brand $gpu" ;; *"nvidia"*) From 0d89e1a400851a157d65eb3cd59416d97a66df01 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 25 Apr 2018 11:42:11 +1000 Subject: [PATCH 2/2] gpu: Fix ATI/AMD branding issue. --- neofetch | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index b94fb27c..c70c2516 100755 --- a/neofetch +++ b/neofetch @@ -1313,8 +1313,10 @@ get_gpu() { case "$gpu" in *"advanced"*) - brand="${gpu/*AMD*/AMD}" + 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 }"