aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/requirements
diff options
context:
space:
mode:
authorJack Nagel2014-01-11 19:34:25 -0600
committerJack Nagel2014-01-11 19:37:19 -0600
commit30e4e4c1a97b21af74d5cc660eaf4723cc780908 (patch)
treedf96e216af8c99575617c0a9567486c7574dbb24 /Library/Homebrew/requirements
parent7aee6464289b1461e97fc6e7a7bc99a5752d8ac8 (diff)
downloadhomebrew-30e4e4c1a97b21af74d5cc660eaf4723cc780908.tar.bz2
LanguageModuleDependency: remove code that only worked by accident
The array elements here are individual arguments to exec, not a string to pass to the shell; this only appeared to work. In reality, `opam list` accepts "|" as valid argument, and the command works fine without grepping the output.
Diffstat (limited to 'Library/Homebrew/requirements')
-rw-r--r--Library/Homebrew/requirements/language_module_dependency.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/requirements/language_module_dependency.rb b/Library/Homebrew/requirements/language_module_dependency.rb
index 78dc90d15..3beaf359b 100644
--- a/Library/Homebrew/requirements/language_module_dependency.rb
+++ b/Library/Homebrew/requirements/language_module_dependency.rb
@@ -25,7 +25,7 @@ class LanguageModuleDependency < Requirement
when :jruby then %W{/usr/bin/env jruby -rubygems -e require\ '#{@import_name}'}
when :lua then %W{/usr/bin/env luarocks show #{@import_name}}
when :node then %W{/usr/bin/env node -e require('#{@import_name}');}
- when :ocaml then %W{/usr/bin/env opam list #{@import_name} | grep #{@import_name}}
+ when :ocaml then %W{/usr/bin/env opam list #{@import_name}}
when :perl then %W{/usr/bin/env perl -e use\ #{@import_name}}
when :python then %W{/usr/bin/env python -c import\ #{@import_name}}
when :python3 then %W{/usr/bin/env python3 -c import\ #{@import_name}}