From 35369534b8ebe94d170db150c6767b544905dcae Mon Sep 17 00:00:00 2001 From: Dylan Date: Sun, 31 Jan 2016 13:16:50 +1100 Subject: [PATCH] Fix GPU count --- fetch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fetch b/fetch index 85707fa8..0b35d64f 100755 --- a/fetch +++ b/fetch @@ -837,9 +837,10 @@ getgpu () { "Linux") # Get the GPUs gpu="$(lspci | grep -F "VGA" | uniq -c)" + gpu=${gpu/??':'??'.'?} # Count the number of GPUs - count=${gpu/ ??:*} + count=${gpu/ VGA*} count=${count//[[:space:]]} # If there's more than one gpu