From d91361138ad0daa9ec70ebcafae7affd9dd37be0 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 6 Nov 2016 21:37:13 +1100 Subject: [PATCH] Misc: Fix failing build --- neofetch | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/neofetch b/neofetch index 721760e3..85df3b19 100755 --- a/neofetch +++ b/neofetch @@ -202,14 +202,14 @@ getdistro() { distro="$codename $osx_version $osx_build" case "$distro_shorthand" in - "on") distro="${distro/ "${osx_build}"}" ;; + "on") distro="${distro/ ${osx_build}}" ;; "tiny") case "$osx_version" in "10."[4-7]*) distro="${distro/${codename}/Mac OS X}" ;; "10."[8-9]* | "10.1"[0-1]*) distro="${distro/${codename}/OS X}" ;; "10.12"*) distro="${distro/${codename}/macOS}" ;; esac - distro="${distro/ "${osx_build}"}" + distro="${distro/ ${osx_build}}" ;; esac ;; @@ -435,13 +435,13 @@ getpackages() { packages="$(($(ls -l /usr/local/bin/ | grep -v "\(../Cellar/\|brew\)" | wc -l) - 1))" type -p port >/dev/null && \ - packages="$((packages + "$(port installed | wc -l)" - 1))" + packages="$((packages + $(port installed | wc -l) - 1))" type -p brew >/dev/null && \ - packages="$((packages + "$(find /usr/local/Cellar -maxdepth 1 | wc -l)" - 1))" + packages="$((packages + $(find /usr/local/Cellar -maxdepth 1 | wc -l) - 1))" type -p pkgin >/dev/null && \ - packages="$((packages + "$(pkgin list | wc -l)"))" + packages="$((packages + $(pkgin list | wc -l)))" ;; "BSD")