diff --git a/Formula/redpen.rb b/Formula/redpen.rb index 79f488ac58..c2ac392852 100644 --- a/Formula/redpen.rb +++ b/Formula/redpen.rb @@ -11,8 +11,7 @@ class Redpen < Formula libexec.install %w[conf lib sample-doc] prefix.install "bin" - java_home = `/usr/libexec/java_home`.chomp - bin.env_script_all_files(libexec/"bin", :JAVA_HOME => java_home) + bin.env_script_all_files(libexec/"bin", :JAVA_HOME => ENV["JAVA_HOME"]) end test do