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