From 8b0d8dfda20aedce5a9721e72ace8c694572e187 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 19 Nov 2016 10:34:29 +1100 Subject: [PATCH] Packages: Move block --- neofetch | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/neofetch b/neofetch index c79962d1..48960328 100755 --- a/neofetch +++ b/neofetch @@ -399,6 +399,12 @@ get_packages() { type -p cave >/dev/null && \ packages="$((packages+=$(ls -d -1 /var/db/paludis/repositories/cross-installed/*/data/* /var/db/paludis/repositories/installed/data/* | wc -l)))" + type -p lvu >/dev/null && \ + packages="$((packages+=$(lvu installed | wc -l)))" + + type -p tce-status >/dev/null && \ + packages="$((packages+=$(tce-status -i | wc -l)))" + # pisi is sometimes unavailable in Solus(?). This uses eopkg # instead if pisi isn't found. if type -p pisi >/dev/null; then @@ -412,12 +418,6 @@ get_packages() { packages="$((packages+=$(ls -1 /var/db/pkg | wc -l)))" (("$packages" == "0")) && packages="$((packages+=$(pkg list | wc -l)))" fi - - type -p lvu >/dev/null && \ - packages="$((packages+=$(lvu installed | wc -l)))" - - type -p tce-status >/dev/null && \ - packages="$((packages+=$(tce-status -i | wc -l)))" ;; "Mac OS X")