From 2280507650ea2e603d8f8f6e02c932e09a6e8fee Mon Sep 17 00:00:00 2001 From: exa18 Date: Fri, 5 Jul 2024 23:18:17 +0200 Subject: [PATCH] fix detectpkgs for Debian/Ubuntu like Fixed to show correct pkgs number, ii and hi. Added SparkyLinux to debian count. --- CHANGELOG | 4 ++++ screenfetch-dev | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index f30b28a8..68a07680 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -3,6 +3,10 @@ changelog **** **** **** **** +v3.9.2 + - Fix Detectpkgs to display correct number for Debian/Ubuntu + - Added SparkyLinux to Detectpkgs + v3.9.1 - Fix GTK3 detection issues - LXQt proper detection and theme detection diff --git a/screenfetch-dev b/screenfetch-dev index e7682e1a..0e6bc909 100755 --- a/screenfetch-dev +++ b/screenfetch-dev @@ -35,7 +35,7 @@ #LC_ALL=C -scriptVersion="3.9.1" +scriptVersion="3.9.2" ###################### # Settings for fetcher @@ -1429,8 +1429,8 @@ detectpkgs () { pkgs=$(pacman-g2 -Q | wc -l) ;; 'Debian'|'Ubuntu'|'Mint'|'Fuduntu'|'KDE neon'|'Devuan'|'OS Elbrus'|'Raspbian'|'Quirinux'|'LMDE'|'CrunchBang'|'Peppermint'| \ 'LinuxDeepin'|'Deepin'|'Kali Linux'|'Trisquel'|'elementary OS'|'gNewSense'|'BunsenLabs'|'SteamOS'|'Parrot Security'| \ - 'GrombyangOS'|'DesaOS'|'Zorin OS'|'Proxmox VE'|'PureOS'|'DraugerOS') - pkgs=$(dpkg -l | grep -c '^i') ;; + 'GrombyangOS'|'DesaOS'|'Zorin OS'|'Proxmox VE'|'PureOS'|'DraugerOS'|'SparkyLinux') + pkgs=$(dpkg -l | grep -cE '^[hi]i') ;; 'Slackware') pkgs=$(ls -1 /var/log/packages | wc -l) ;; 'Gentoo'|'Sabayon'|'Funtoo'|'Kogaion')