From 8e55e6c600bd367de8d57e3b62d19bb623578a8a Mon Sep 17 00:00:00 2001 From: TpaeFawzen <30316430+GH-TpaeFawzen@users.noreply.github.com> Date: Fri, 30 Oct 2020 18:47:47 +0900 Subject: [PATCH] improved [ "$packages" -gt 1 ] uninversed the condition --- pfetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pfetch b/pfetch index 694bfe7..4a3f413 100755 --- a/pfetch +++ b/pfetch @@ -565,7 +565,7 @@ get_pkgs() { (IRIX) packages=$((packages - 3)) ;; esac - case "$packages" in (0|1|-*) :;; (*) log pkgs "$packages" >&6;; esac + case "$packages" in (1?*|[2-9]*) log pkgs "$packages" >&6;; esac } get_memory() {