Skip to content
Snippets Groups Projects
Unverified Commit 48d4a23a authored by Domen Kožar's avatar Domen Kožar
Browse files

bail out if macOS 10.9 or lower is used during installer

parent 9000150a
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,13 @@ self="$(dirname "$0")"
nix="@nix@"
cacert="@cacert@"
# macOS support for 10.10 or higher
if [[ "$(uname -s)" = "Darwin" && $(($(sw_vers -productVersion | cut -d '.' -f 2))) -lt 10 ]]; then
echo "$0: macOS $(sw_vers -productVersion) 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment