From 4c4f3507a11af9f3eb6fbda679b9c40f3b7bb4f0 Mon Sep 17 00:00:00 2001 From: Kira Date: Sun, 19 Mar 2023 09:58:30 +0300 Subject: [PATCH] Fix openSUSE packages count --- disfetch | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/disfetch b/disfetch index 481e5ff..669e635 100755 --- a/disfetch +++ b/disfetch @@ -238,7 +238,6 @@ packages_haiku() { pkgman search -ia 2>/dev/null | packages_nix() { nix-store -q --requisites ~/.nix-profile 2>/dev/null | wc -l; } packages_pacman() { pacman -Qq 2>/dev/null | wc -l; } packages_rpm() { rpm -qa 2>/dev/null | wc -l; } -packages_zypper() { zypper se --installed-only 2>/dev/null | wc -l; } packages_slack() { find /var/log/packages -mindepth 1 -maxdepth 1 2>/dev/null | wc -l; } packages_xbps() { xbps-query -l 2>/dev/null | wc -l; } @@ -253,13 +252,12 @@ PACKAGES="$( packages_dpkg;; arc*|artix*|endeavour*|manjaro*|garuda*|msys2*|parabola*) packages_pacman;; - fedora*|qubes*|cent*|redhat*) packages_rpm;; + fedora*|qubes*|cent*|redhat*|opensuse*) packages_rpm;; gentoo*) packages_emerge;; haiku*) packages_haiku;; nixos*) packages_nix;; slack*) packages_slack;; void*) packages_xbps;; - opensuse*) packages_rpm;; esac )"