KittyKatt / screenFetch

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

Fix detection of Kali Linux when lsb_release is not installed #748

Open elboulangero opened 2 years ago

elboulangero commented 2 years ago

When lsb_release is not available (eg. when running Kali Linux in a container), detection is done based on the ID variable from the os-release file. For Kali Linux, this ID is simply 'kali'.

However screenfetch is looking for the glob 'kali*linux', so it doesn't work:

  ┌──(like㉿kali)-[/work]
  └─# screenfetch -vvvvv
  :: Finding distro...found as 'kali '

  [...]

                               OS: kali
                               Kernel: xxx
           #####               Uptime: xxx
          #######              Packages: Unknown
          ##O#O##              Shell: xxx
          #######              Disk: xxx
        ###########            CPU: xxx
       #############           GPU: xxx
      ###############          RAM: xxx
      ################
     #################
   #####################
   #####################
     #################

Fixed with this commit.