Skip to content

Commit

Permalink
bail out if osx 10.9 or lower is used during installer
Browse files Browse the repository at this point in the history
  • Loading branch information
domenkozar committed Jan 24, 2017
1 parent 9000150 commit 9d4889b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/install-nix-from-closure.sh
Expand Up @@ -7,6 +7,13 @@ self="$(dirname "$0")"
nix="@nix@"
cacert="@cacert@"


# OSX support for 10.10 or higher
if [[ "$(uname -s)" = "Darwin" && $(($(sw_vers -productVersion | cut -d '.' -f 2))) -lt 10 ]]; then
echo "$0: OSX $(uname -s) is not supported, upgrade to 10.10 or higher"
exit 1
fi

if ! [ -e "$self/.reginfo" ]; then
echo "$0: incomplete installer (.reginfo is missing)" >&2
exit 1
Expand Down

0 comments on commit 9d4889b

Please sign in to comment.