Commit 2e883791 authored by Dylan Araps's avatar Dylan Araps Committed by GitHub

Merge pull request #376 from dylanaraps/macos-fix

Condense osx_version
parents 3d3b61fc 805b7d2e
......@@ -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-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
;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment