fix package count not including brew casks (#1777)
This commit is contained in:
parent
5e54a5e48b
commit
25127b7793
4
neofetch
4
neofetch
|
@ -1571,7 +1571,7 @@ get_packages() {
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
{
|
{
|
||||||
shopt -s nullglob
|
shopt -s nullglob
|
||||||
has brew && dir "$(brew --cellar)/*"
|
has brew && dir "$(brew --cellar)/* $(brew --caskroom)/*"
|
||||||
has emerge && dir "/var/db/pkg/*/*"
|
has emerge && dir "/var/db/pkg/*/*"
|
||||||
has Compile && dir "/Programs/*/"
|
has Compile && dir "/Programs/*/"
|
||||||
has eopkg && dir "/var/lib/eopkg/package/*"
|
has eopkg && dir "/var/lib/eopkg/package/*"
|
||||||
|
@ -1634,7 +1634,7 @@ get_packages() {
|
||||||
|
|
||||||
"Mac OS X"|"macOS"|MINIX)
|
"Mac OS X"|"macOS"|MINIX)
|
||||||
has port && pkgs_h=1 tot port installed && ((packages-=1))
|
has port && pkgs_h=1 tot port installed && ((packages-=1))
|
||||||
has brew && dir "$(brew --cellar)"/*
|
has brew && dir "$(brew --cellar)/* $(brew --caskroom)/*"
|
||||||
has pkgin && tot pkgin list
|
has pkgin && tot pkgin list
|
||||||
has dpkg && tot dpkg-query -f '.\n' -W
|
has dpkg && tot dpkg-query -f '.\n' -W
|
||||||
|
|
||||||
|
|
Reference in New Issue