packages: Remove find usage from brew

This commit is contained in:
Dylan Araps 2018-06-02 15:04:27 +10:00
parent c03c9e1248
commit 9bf46946b6
1 changed files with 1 additions and 1 deletions

View File

@ -1308,7 +1308,7 @@ get_packages() {
"Mac OS X" | "MINIX")
pkgs "port" "$(port installed | wc -l) - 1"
pkgs "brew" "$(find /usr/local/Cellar -maxdepth 1 | wc -l) - 1"
pkgs "brew" "$(files=(/usr/local/Cellar/*) && ((packages+=${#files[@]}))) - 1"
pkgs "pkgin" "$(pkgin list | wc -l)"
;;