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).
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 installednix
andkiss
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).