diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/elixir.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Formula/elixir.rb b/Library/Formula/elixir.rb index beb1ad8f8..dfdf19a8f 100644 --- a/Library/Formula/elixir.rb +++ b/Library/Formula/elixir.rb @@ -3,7 +3,12 @@ require 'formula' class ErlangInstalled < Requirement fatal true - satisfy { which 'erl' } + satisfy { + which 'erl' and begin + `erl -noshell -eval 'io:fwrite("~s~n", [erlang:system_info(otp_release)]).' -s erlang halt | grep -q '^R1[6789]'` + $?.exitstatus == 0 + end + } def message; <<-EOS.undent Erlang R16 is required to install. |
