From 5dddaa0b260d115d1db2f06c5e6c7838f6e6a48d Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 23 Oct 2016 11:22:17 +1100 Subject: [PATCH] GPU: Remove duplicate substitutions --- neofetch | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/neofetch b/neofetch index c97fbae6..a8e23a5d 100755 --- a/neofetch +++ b/neofetch @@ -1013,6 +1013,8 @@ getgpu() { gpu="${gpu/* VGA compatible controller: }" gpu="${gpu/* 3D controller: }" gpu="${gpu/(rev*)}" + gpu="${gpu/\[}" + gpu="${gpu/\]}" case "$gpu" in intel*) @@ -1025,8 +1027,6 @@ getgpu() { gpu="${gpu/Tahiti PRO}" gpu="${gpu/XTX}" gpu="${gpu/ OEM}" - gpu="${gpu/ \[}" - gpu="${gpu/\]}" gpu="${gpu/*Radeon/Radeon}" brand="AMD " @@ -1036,8 +1036,6 @@ getgpu() { gpu="${gpu/NVIDIA Corporation }" gpu="${gpu/G????M }" gpu="${gpu/G???? }" - gpu="${gpu/\[}" - gpu="${gpu/\] }" brand="NVIDIA " ;;