add macOS High Sierra support

This commit is contained in:
chance 2017-09-10 23:46:08 -06:00 committed by GitHub
parent f0bcf317d8
commit afd8e56d58

View file

@ -176,6 +176,7 @@ get_distro() {
"10.10"*) codename="OS X Yosemite" ;;
"10.11"*) codename="OS X El Capitan" ;;
"10.12"*) codename="macOS Sierra" ;;
"10.13"*) codename="macOS High Sierra" ;;
*) codename="macOS" ;;
esac
distro="$codename $osx_version $osx_build"
@ -186,7 +187,7 @@ get_distro() {
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}" ;;
"10.1"[2-3]*) distro="${distro/${codename}/macOS}" ;;
esac
distro="${distro/ ${osx_build}}"
;;