mirror of
https://github.com/KittyKatt/screenFetch.git
synced 2026-04-24 03:00:16 -04:00
add pkgsrc support for OS X
This commit is contained in:
@@ -906,6 +906,10 @@ detectpkgs () {
|
||||
brew_pkgs=$(brew list -1 2>/dev/null | wc -l)
|
||||
pkgs=$((${pkgs} + ${brew_pkgs}))
|
||||
fi
|
||||
if type -p pkgin >/dev/null 2>&1; then
|
||||
pkgsrc_pkgs=$(pkgin list 2>/dev/null | wc -l)
|
||||
pkgs=$((${pkgs} + ${pkgsrc_pkgs}))
|
||||
fi
|
||||
;;
|
||||
'OpenBSD')
|
||||
pkgs=$(pkg_info | wc -l | awk '{sub(" ", "");print $1}')
|
||||
|
||||
Reference in New Issue
Block a user