Fixed bug where xbps packages would be counted on arch systems and not void systems

This commit is contained in:
capcreepergr 2024-06-18 07:49:19 +03:00
parent cd08003752
commit b8d7017299

View File

@ -20,7 +20,7 @@ get_packages() {
if command_exists rpm; then
ARRAY+=("$(rpm -qa | wc -l) (rpm)")
fi
if command_exists pacman; then
if command_exists xbps-query; then
ARRAY+=("$(xbps-query -l | wc -l) (xbps)")
fi
if command_exists bpm; then