Commit 9b5c252c authored by Dylan's avatar Dylan

Fixes #221

parent 40f93180
...@@ -640,12 +640,12 @@ getuptime () { ...@@ -640,12 +640,12 @@ getuptime () {
getpackages () { getpackages () {
case "$os" in case "$os" in
"Linux") "Linux")
if type -p dpkg >/dev/null 2>&1; then if type -p pacman >/dev/null 2>&1; then
packages="$(dpkg --get-selections | grep -cv deinstall$)"
elif type -p pacman >/dev/null 2>&1; then
packages="$(pacman -Qq --color never | wc -l)" packages="$(pacman -Qq --color never | wc -l)"
elif type -p dpkg >/dev/null 2>&1; then
packages="$(dpkg --get-selections | grep -cv deinstall$)"
elif type -p /sbin/pkgtool >/dev/null 2>&1; then elif type -p /sbin/pkgtool >/dev/null 2>&1; then
packages="$(ls -1 /var/log/packages | wc -l)" packages="$(ls -1 /var/log/packages | wc -l)"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment