From 3f1328e8cec2aa86f35687fb45073387ed69e666 Mon Sep 17 00:00:00 2001 From: Arnaud Rebillout Date: Mon, 23 May 2022 15:18:40 +0700 Subject: [PATCH] Fix detection of Kali Linux when lsb_release is not installed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- screenfetch-dev | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screenfetch-dev b/screenfetch-dev index 0b782d4c..700a95f1 100755 --- a/screenfetch-dev +++ b/screenfetch-dev @@ -1226,7 +1226,7 @@ detectdistro () { haiku) distro="Haiku" ;; hyperbolagnu|hyperbolagnu/linux-libre|'hyperbola gnu/linux-libre'|hyperbola) distro="Hyperbola GNU/Linux-libre" ;; januslinux) distro="januslinux" ;; - kali*linux) distro="Kali Linux" ;; + kali|kali*linux) distro="Kali Linux" ;; kaos) distro="KaOS";; kde*neon|neon) distro="KDE neon" ;; kogaion) distro="Kogaion" ;;