From d18347f92703f2b4ea9212acce0595cfd7efcb03 Mon Sep 17 00:00:00 2001 From: Kainoa Kanter Date: Sat, 15 Jun 2024 19:13:22 -0700 Subject: [PATCH] fix: use pkg for Android Termux pacman is also an option on Termux --- nerdfetch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nerdfetch b/nerdfetch index d2dfedc..7593ffe 100755 --- a/nerdfetch +++ b/nerdfetch @@ -4,7 +4,7 @@ ostype="$(uname)" -version=8.1.1 +version=8.1.2 font=nerd distrotype=none osi="" @@ -210,8 +210,8 @@ case $manager in manager="pkg";; *) if [ $distrotype = android ]; then - packages="$(dpkg-query -f '${binary:Package}\n' -W | wc -l)" - manager="dpkg" + packages="$(pkg list-installed | wc -l)" + manager="pkg" else packages="$(ls /usr/bin | wc -l)" manager="bin"