diff --git a/Formula/elixir.rb b/Formula/elixir.rb index c644942ea3..6921056d7e 100644 --- a/Formula/elixir.rb +++ b/Formula/elixir.rb @@ -6,7 +6,7 @@ class Erlang18Requirement < Requirement erl = which("erl") next unless erl `#{erl} -noshell -eval 'io:fwrite("~s", [erlang:system_info(otp_release) >= "18"])' -s erlang halt | grep -q '^true'` - $?.exitstatus.zero? + $?.exitstatus.zero? ? erl : false end def message; <<-EOS.undent