diff --git a/neofetch b/neofetch index 56526e3c..c275d055 100755 --- a/neofetch +++ b/neofetch @@ -1026,10 +1026,10 @@ getgpu () { source "/tmp/neofetch/gpu" else gpu=$(system_profiler SPDisplaysDataType | awk -F': ' '/^\ *Chipset Model:/ {printf $2 ", "}') + gpu=${gpu//'/ $'} + gpu=${gpu%,*} cache "gpu" "$gpu" fi - gpu=${gpu//'/ $'} - gpu=${gpu%,*} ;; *"BSD")