pfetch: Fix openbsd package output. Closes #97

This commit is contained in:
Dylan Araps 2021-06-11 07:58:17 +00:00
parent 35343a4190
commit f1ae8c17a1

6
pfetch
View File

@ -652,6 +652,12 @@ get_pkgs() {
(IRIX) (IRIX)
packages=$((packages - 3)) packages=$((packages - 3))
;; ;;
# OpenBSD's wc prints whitespace before the output
# which needs to be stripped.
(OpenBSD)
packages=$((packages))
;;
esac esac
case $packages in case $packages in