Skip to content

Commit

Permalink
Include MacOS Ventura in bypass version check (#433)
Browse files Browse the repository at this point in the history
Attempting to install older OTP versions on MacOS Ventura will fail
because the version check bypass does not get applied.

This adds the simple check for the newest version of MacOS to include
it in the version check bypass
  • Loading branch information
jjcarstens committed Apr 5, 2023
1 parent a3fb06e commit 368cb72
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion kerl
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@ _END_PATCH
# https://github.com/erlang/otp/commit/f1044ef9e35da26f276b8127640e177d67aade6a.diff
maybe_patch_macos_version_check() {
release="$1"
if is_osx_bigsur || is_osx_monterey && \
if is_osx_bigsur || is_osx_monterey || is_osx_ventura && \
[ "$release" -lt 24 ]; then
apply_bypass_version_check >>"$LOGFILE"
KERL_USE_AUTOCONF=1
Expand All @@ -866,6 +866,10 @@ is_osx_monterey() {
is_osx 21
}

is_osx_ventura() {
is_osx 22
}

apply_bypass_version_check() {
if [ -f make/configure.in ]; then
l=n stderr "Bypassing version check in make/configure.in"
Expand Down

0 comments on commit 368cb72

Please sign in to comment.