mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-26 02:25:01 +00:00
made maths part smaller
This commit is contained in:
4
neofetch
4
neofetch
@@ -691,12 +691,12 @@ getpackages () {
|
|||||||
|
|
||||||
if type -p port >/dev/null 2>&1; then
|
if type -p port >/dev/null 2>&1; then
|
||||||
port_packages=$(port installed 2>/dev/null | wc -l)
|
port_packages=$(port installed 2>/dev/null | wc -l)
|
||||||
packages=$((packages + $((port_packages - 1))))
|
packages=$((packages + port_packages - 1))
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if type -p brew >/dev/null 2>&1; then
|
if type -p brew >/dev/null 2>&1; then
|
||||||
brew_packages=$(find /usr/local/Cellar -maxdepth 1 2>/dev/null | wc -l)
|
brew_packages=$(find /usr/local/Cellar -maxdepth 1 2>/dev/null | wc -l)
|
||||||
packages=$((packages + $((brew_packages - 1))))
|
packages=$((packages + brew_packages - 1))
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if type -p pkgin >/dev/null 2>&1; then
|
if type -p pkgin >/dev/null 2>&1; then
|
||||||
|
|||||||
Reference in New Issue
Block a user