diff options
| author | Clemens Gruber | 2013-08-23 17:10:18 +0200 |
|---|---|---|
| committer | Jack Nagel | 2013-08-23 12:29:58 -0500 |
| commit | 9e01e61d24bd091e4dc0e912f190d22499c0b7c6 (patch) | |
| tree | 474c2231b749689073eb7e3bddb55f2c831a1c3c /Library/Formula/elixir.rb | |
| parent | 4407ddcb4d9ec07df99678f80154b3dc5d067e82 (diff) | |
| download | homebrew-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.rb | 4 |
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 } |
