Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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

wants to merge 1 commit into from

Conversation

elboulangero
Copy link

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.

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.
@elboulangero elboulangero closed this by deleting the head repository Sep 10, 2022
@elboulangero elboulangero reopened this Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant