From 141fd7709edc827cd472ea8acefd5c2a7f63d68c Mon Sep 17 00:00:00 2001 From: Emily <36363495+em1lyy@users.noreply.github.com> Date: Thu, 10 Jun 2021 18:02:40 +0200 Subject: [PATCH] fix package count for openSUSE zypper shows some informational messages before printing the actual packages, so this commit adds the "-q" flag to suppress the informational output und to provide a more accurate package count --- uwufetch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uwufetch.c b/uwufetch.c index d9e474a..7e0e434 100644 --- a/uwufetch.c +++ b/uwufetch.c @@ -233,7 +233,7 @@ int pkgman() {"port installed 2> /dev/null | tail -n +2 | wc -l", "(port)"}, {"rpm -qa --last 2> /dev/null | wc -l", "(rpm)"}, {"xbps-query -l 2> /dev/null | wc -l", "(xbps)"}, - {"zypper se --installed-only 2> /dev/null | wc -l", "(zypper)"}}; + {"zypper -q se --installed-only 2> /dev/null | wc -l", "(zypper)"}}; const unsigned long pkgman_count = sizeof(pkgmans) / sizeof(pkgmans[0]); // to format the pkgman_name string properly