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.
This commit is contained in:
parent
0106cfdeff
commit
92ac63fd94
@ -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}}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user