From 2abdbfc2bc7342126b47ba00029cfac6e3580ad1 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 17 Oct 2016 23:48:30 +1100 Subject: [PATCH] Condense osx_version --- neofetch | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/neofetch b/neofetch index 73ee3760..d9a9672f 100755 --- a/neofetch +++ b/neofetch @@ -193,14 +193,12 @@ getdistro() { "on") distro="${distro/ ${osx_build}}" ;; "tiny") case "$osx_version" in - "10.4"*|"10.5"*|"10.6"*|"10.7"*) - distro="${distro/${codename}/Mac OS X}" ;; - "10.8"*|"10.9"*|"10.10"*|"10.11"*) - distro="${distro/${codename}/OS X}" ;; - "10.12"*) - distro="${distro/${codename}/macOS}" ;; + "10."[4-7]*) distro="${distro/${codename}/Mac OS X}" ;; + "10."[8-11]*) distro="${distro/${codename}/OS X}" ;; + "10.12"*) distro="${distro/${codename}/macOS}" ;; esac - distro="${distro/ ${osx_build}}" ;; + distro="${distro/ ${osx_build}}" + ;; esac ;;