From 2949f6daf2409fb87cc43d65eb4f058589c44a01 Mon Sep 17 00:00:00 2001
From: zenobit <zenobit@disroot.org>
Date: Tue, 31 Dec 2024 00:51:04 +0100
Subject: [PATCH] am count packages fix

---
 neofetch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/neofetch b/neofetch
index def90fde..fd1b8040 100755
--- a/neofetch
+++ b/neofetch
@@ -2183,7 +2183,7 @@ get_packages() {
             has evox       && tot cat /var/evox/packages/DB
             has squirrel   && tot ls -w 1 /var/packages
             has anise      && tot anise s --installed
-            has am         && pac "$(am -f --less)"
+            has am         && pac "$(am -f --less | awk '{ SUM += $1} END { print SUM }')"
             # Bonsai refers to the now archived repo https://github.com/mitchweaver/bonsai
             has bonsai     && tot bonsai list
             # Rad refers to https://github.com/glaucuslinux/rad