aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/elixir.rb
diff options
context:
space:
mode:
authorClemens Gruber2013-08-23 17:10:18 +0200
committerJack Nagel2013-08-23 12:29:58 -0500
commit9e01e61d24bd091e4dc0e912f190d22499c0b7c6 (patch)
tree474c2231b749689073eb7e3bddb55f2c831a1c3c /Library/Formula/elixir.rb
parent4407ddcb4d9ec07df99678f80154b3dc5d067e82 (diff)
downloadhomebrew-9e01e61d24bd091e4dc0e912f190d22499c0b7c6.tar.bz2
elixir: fixed detection of homebrew installed erlang
Closes #22094. Closes #22040. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/elixir.rb')
-rw-r--r--Library/Formula/elixir.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Formula/elixir.rb b/Library/Formula/elixir.rb
index 8f125a115..720639192 100644
--- a/Library/Formula/elixir.rb
+++ b/Library/Formula/elixir.rb
@@ -4,8 +4,8 @@ class ErlangInstalled < Requirement
fatal true
satisfy {
- which 'erl' and begin
- `erl -noshell -eval 'io:fwrite("~s~n", [erlang:system_info(otp_release)]).' -s erlang halt | grep -q '^R1[6789]'`
+ erl = 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
}