From 32116ea67f2ff351b598075ca18a8861fbf4de4c Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 22 Dec 2016 11:26:52 +1100 Subject: [PATCH] GPU: Don't remove all matches --- neofetch | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/neofetch b/neofetch index 1bcacd16..94ba5243 100755 --- a/neofetch +++ b/neofetch @@ -997,9 +997,9 @@ get_gpu() { esac if [[ "$gpu_brand" == "off" ]]; then - gpu="${gpu//AMD }" - gpu="${gpu//NVIDIA }" - gpu="${gpu//Intel }" + gpu="${gpu/AMD }" + gpu="${gpu/NVIDIA }" + gpu="${gpu/Intel }" fi prin "GPU${index:-0}" "$gpu" @@ -1080,9 +1080,9 @@ get_gpu() { esac if [[ "$gpu_brand" == "off" ]]; then - gpu="${gpu//AMD}" - gpu="${gpu//NVIDIA}" - gpu="${gpu//Intel}" + gpu="${gpu/AMD}" + gpu="${gpu/NVIDIA}" + gpu="${gpu/Intel}" fi }