redpen: use JAVA_HOME from :java
Closes Homebrew/homebrew#37132. Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
parent
b6d93a99ba
commit
b5ace15641
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue