ThatOneCalculator / NerdFetch

A POSIX *nix fetch script using Nerdfonts
https://aur.archlinux.org/packages/nerdfetch/
MIT License
478 stars 24 forks source link

New method of counting packages #25

Closed ghost closed 3 years ago

ghost commented 3 years ago

The original method of obtaining the number of packages only works for one package manager. It is also dependent on the order in the which command. (For example, if I have installed nix and kiss on Debian, the fetch script will only count kiss packages.) The method in this PR checks for each package manager individually (and, as a benefit, is somehow faster than the original method).

ghost commented 3 years ago

I see this has already been suggested, I'll close the PR.