fix package count not including brew casks (#1777)

This commit is contained in:
Fritz Geib 2021-06-12 03:47:27 -04:00 committed by GitHub
parent 5e54a5e48b
commit 25127b7793
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1571,7 +1571,7 @@ get_packages() {
# shellcheck disable=SC2086
{
shopt -s nullglob
has brew && dir "$(brew --cellar)/*"
has brew && dir "$(brew --cellar)/* $(brew --caskroom)/*"
has emerge && dir "/var/db/pkg/*/*"
has Compile && dir "/Programs/*/"
has eopkg && dir "/var/lib/eopkg/package/*"
@ -1634,7 +1634,7 @@ get_packages() {
"Mac OS X"|"macOS"|MINIX)
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 dpkg && tot dpkg-query -f '.\n' -W