Skip to content
This repository has been archived by the owner on May 21, 2019. It is now read-only.

Assert that OSX >= 10.12 on install #204

Merged
merged 1 commit into from
Mar 21, 2017
Merged

Assert that OSX >= 10.12 on install #204

merged 1 commit into from
Mar 21, 2017

Conversation

natemcmaster
Copy link
Contributor

.NET Core 2.0 requires macOS Sierra. This adds a check so KoreBuild will fail early if the OS is too old.

@natemcmaster natemcmaster changed the title Check that OSX >= 10.12 on install Assert that OSX >= 10.12 on install Mar 21, 2017
@@ -118,6 +118,15 @@ fi

if [ "$(uname)" == "Darwin" ]; then
ulimit -n 2048

# Check that OS is 10.12 or newer
osx_version="$(sw_vers | grep ProductVersion | awk '{print $2}')"
Copy link
Contributor

@moozzyk moozzyk Mar 21, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't you just grep against something like ProductVersion +10\.1[2-9](\.d+)? - if found you are good otherwise you exit ?

Copy link
Contributor Author

@natemcmaster natemcmaster Mar 21, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could, but then I'd have to add a second call to sw_vers and grep to fetch the version for the error message

@natemcmaster
Copy link
Contributor Author

⌚ this is going to break most of our OSX builds. Before we do this, I'm going to update our travis.yml files to use mac OS Sierra.

@natemcmaster
Copy link
Contributor Author

Merging now that Travis agents have been updated and internal agents upgrade is in-progress.

@natemcmaster natemcmaster merged commit 734e1a1 into dev Mar 21, 2017
@natemcmaster natemcmaster deleted the namc/sierra branch March 21, 2017 19:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants