From 5e777cfde47cb93d4e200798e02def0b60949b85 Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Mon, 14 Mar 2016 19:51:56 +0700 Subject: [PATCH 1/2] Added notes for RHEL/CentOS packaging --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 6857f8de..3696b7ef 100644 --- a/README.md +++ b/README.md @@ -188,6 +188,7 @@ https://github.com/dylanaraps/neofetch/wiki/Following-HEAD - `wget https://copr.fedorainfracloud.org/coprs/konimex/neofetch/repo/epel-7/konimex-neofetch-epel-7.repo` 3. Install the package - `sudo yum install neofetch` +* NOTE: This will only work in RHEL/CentOS 7 ### Mac OS X 1. Install `neofetch` with Homebrew From faeed8771f5d35b69dcf424b8db74c5012a537af Mon Sep 17 00:00:00 2001 From: Andrew Titmuss Date: Tue, 15 Mar 2016 17:15:56 +1100 Subject: [PATCH 2/2] fixed osx_buildver option --- neofetch | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/neofetch b/neofetch index c80afff5..48a613cd 100755 --- a/neofetch +++ b/neofetch @@ -469,6 +469,7 @@ case "$os" in "Mac OS X") osx_version=$(sw_vers -productVersion) + osx_build=$(sw_vers -buildVersion) case "${osx_version%.*}" in "10.4") codename="Mac OS X Tiger" ;; @@ -481,9 +482,7 @@ case "$os" in "10.11") codename="OS X El Capitan" ;; *) codename="Mac OS X" ;; esac - distro="$codename $osx_version" - - [ "$osx_buildversion" == "on" ] && distro+=" $(sw_vers -buildVersion)" + distro="$codename $osx_version $osx_build" ;; "OpenBSD") @@ -2741,6 +2740,10 @@ case "$osx_codename" in "off") distro=${distro/${codename}/Mac OS X} ;; esac +case "$osx_buildversion" in + "off") distro=${distro/ ${osx_build}} ;; +esac + # }}} @@ -2815,4 +2818,3 @@ if [ "$scrot" == "on" ]; then fi # }}} -