From 8f0bb0fcd3233c8a91bc5d0b1671b6ae0f3651ba Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 7 Dec 2016 00:54:37 +1100 Subject: [PATCH] GPU: Disable caching on all systems but macOS. Fixes #509 --- neofetch | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/neofetch b/neofetch index a3fd0f51..23a35678 100755 --- a/neofetch +++ b/neofetch @@ -971,6 +971,7 @@ get_gpu() { gpu="$(system_profiler SPDisplaysDataType | awk -F': ' '/^\ *Chipset Model:/ {printf $2 ", "}')" gpu="${gpu//'/ $'}" gpu="${gpu%,*}" + cache "gpu" "$gpu" ;; "iPhone OS") @@ -1035,8 +1036,6 @@ get_gpu() { gpu="${gpu/NVIDIA}" gpu="${gpu/Intel}" fi - - cache "gpu" "$gpu" } get_memory() {