Merge pull request #202 from iandrewt/homebrew_speed

made OS X packages SUPER fast
This commit is contained in:
Dylan Araps 2016-03-30 19:12:46 +11:00
commit dc97ae1122
1 changed files with 3 additions and 3 deletions

View File

@ -691,12 +691,12 @@ getpackages () {
if type -p port >/dev/null 2>&1; then
port_packages=$(port installed 2>/dev/null | wc -l)
packages=$((packages + $((port_packages - 1))))
packages=$((packages + port_packages - 1))
fi
if type -p brew >/dev/null 2>&1; then
brew_packages=$(brew list -1 2>/dev/null | wc -l)
packages=$((packages + brew_packages))
brew_packages=$(find /usr/local/Cellar -maxdepth 1 2>/dev/null | wc -l)
packages=$((packages + brew_packages - 1))
fi
if type -p pkgin >/dev/null 2>&1; then