diff --git a/fetch b/fetch index 6dc08605..a62d2631 100755 --- a/fetch +++ b/fetch @@ -660,7 +660,9 @@ getgpu () { "Windows") gpu=$(wmic path Win32_VideoController get caption) - gpu=$(tail -1 <<< ${gpu}) + gpu=${gpu/Caption /} + gpu=${gpu//[[:space:]]/} + gpu=${gpu// /} ;; esac }