From b86f01409926b31a29668ece78ac97cccdf3e98c Mon Sep 17 00:00:00 2001 From: Dylan Date: Tue, 19 Jan 2016 12:21:20 +1100 Subject: [PATCH] GPU: Now fully works on Windows --- fetch | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 }