Condense osx_version
This commit is contained in:
parent
3d3b61fc24
commit
2abdbfc2bc
12
neofetch
12
neofetch
|
@ -193,14 +193,12 @@ getdistro() {
|
||||||
"on") distro="${distro/ ${osx_build}}" ;;
|
"on") distro="${distro/ ${osx_build}}" ;;
|
||||||
"tiny")
|
"tiny")
|
||||||
case "$osx_version" in
|
case "$osx_version" in
|
||||||
"10.4"*|"10.5"*|"10.6"*|"10.7"*)
|
"10."[4-7]*) distro="${distro/${codename}/Mac OS X}" ;;
|
||||||
distro="${distro/${codename}/Mac OS X}" ;;
|
"10."[8-11]*) distro="${distro/${codename}/OS X}" ;;
|
||||||
"10.8"*|"10.9"*|"10.10"*|"10.11"*)
|
"10.12"*) distro="${distro/${codename}/macOS}" ;;
|
||||||
distro="${distro/${codename}/OS X}" ;;
|
|
||||||
"10.12"*)
|
|
||||||
distro="${distro/${codename}/macOS}" ;;
|
|
||||||
esac
|
esac
|
||||||
distro="${distro/ ${osx_build}}" ;;
|
distro="${distro/ ${osx_build}}"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
Reference in New Issue