From 83689f8f2a12614c1f435e00bd7d224bf962fbc0 Mon Sep 17 00:00:00 2001 From: Kainoa Kanter Date: Tue, 5 Nov 2024 09:21:31 -0300 Subject: [PATCH] Supress warning on android package list Closes #58 --- nerdfetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nerdfetch b/nerdfetch index d678eba..bb2c060 100755 --- a/nerdfetch +++ b/nerdfetch @@ -4,7 +4,7 @@ ostype="$(uname)" -version=8.3.0 +version=8.3.1 font=nerd distrotype=none osi="" @@ -228,7 +228,7 @@ pkg_info-netbsd) ;; *) if [ $distrotype = android ]; then - packages="$(pkg list-installed | wc -l)" + packages="$(pkg list-installed 2>/dev/null | wc -l)" manager="pkg" else packages="$(ls /usr/bin | wc -l)"