From f1ae8c17a1d6bb039f86d6833c7b19b513458ab0 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 11 Jun 2021 07:58:17 +0000 Subject: [PATCH] pfetch: Fix openbsd package output. Closes #97 --- pfetch | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pfetch b/pfetch index 40bd963..8093daf 100755 --- a/pfetch +++ b/pfetch @@ -652,6 +652,12 @@ get_pkgs() { (IRIX) packages=$((packages - 3)) ;; + + # OpenBSD's wc prints whitespace before the output + # which needs to be stripped. + (OpenBSD) + packages=$((packages)) + ;; esac case $packages in