From b7bb03b6abdbc254770f5ea343354fc0a52c7655 Mon Sep 17 00:00:00 2001 From: Dylan Date: Tue, 19 Jan 2016 11:42:31 +1100 Subject: [PATCH] Wildcard linux distros in getpackages --- fetch | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/fetch b/fetch index d266ccfa..8913b143 100755 --- a/fetch +++ b/fetch @@ -422,27 +422,27 @@ getuptime () { # Get package count getpackages () { case "$distro" in - "Arch Linux" | "Parabola GNU/Linux-libre" | "Manjaro" | "Antergos") + "Arch Linux"* | "Parabola GNU/Linux-libre"* | "Manjaro"* | "Antergos"*) packages="$(pacman -Qq --color never | wc -l)" ;; - "void") + "void"*) packages="$(xbps-query -l | wc -l)" ;; - "Ubuntu" | "Mint" | "Debian" | "Kali Linux" | "Deepin Linux") + "Ubuntu"* | "Mint"* | "Debian"* | "Kali Linux"* | "Deepin Linux"*) packages="$(dpkg --get-selections | grep -v deinstall$ | wc -l)" ;; - "Slackware") + "Slackware"*) packages="$(ls -1 /var/log/packages | wc -l)" ;; - "Gentoo" | "Funtoo") + "Gentoo"* | "Funtoo"*) packages="$(ls -d /var/db/pkg/*/* | wc -l)" ;; - "Fedora" | "openSUSE"|"Red Hat Enterprise Linux"|"CentOS") + "Fedora"* | "openSUSE"* | "Red Hat Enterprise Linux"* | "CentOS"*) packages="$(rpm -qa | wc -l)" ;;