Skip to content

Commit

Permalink
Merge pull request #12 from joshfinnie/os-updates
Browse files Browse the repository at this point in the history
updating archey to have the latest osx names.
  • Loading branch information
joshfinnie committed Jan 3, 2019
2 parents 50cea30 + f5c8602 commit d7bc2f9
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions bin/archey
Expand Up @@ -15,11 +15,11 @@ versionShort="${versionMajor}.${versionMinor}"

## Version of OS X
case $versionShort in
10.12)
version="macOS $(sw_vers -productVersion)"
10.12|10.13|10.14)
version="macOS ${versionNumber}"
;;
*)
version="OS X $(sw_vers -productVersion)"
version="OS X ${versionNumber}"
;;
esac

Expand All @@ -30,6 +30,12 @@ if [ -z "$ipAddress" ]; then
fi

case $versionShort in
10.14)
versionString="Mojave"
;;
10.13)
versionString="High Sierra"
;;
10.12)
versionString="Sierra"
;;
Expand Down

0 comments on commit d7bc2f9

Please sign in to comment.