KittyKatt / screenFetch

Fetches system/theme information in terminal for Linux desktop screenshots.
GNU General Public License v3.0
3.85k stars 454 forks source link

Fix gpu info being displayed across multiple lines error. #600

Closed SainoNamkho closed 5 years ago

SainoNamkho commented 5 years ago

In case the /proc/fb file is

0 svgadrmfb
1 VESA VGA

screenfetch might reserve the line break with dropping out contents after the second space, so $gpu is set to $'svgadrmfb\nVESA', which might be displayed as

   `/ossssso+/:-        -:/+osssso+-   GPU: svgadrmfb
VESA
  `+sso+:-`                 `.-/+oso: