Skip to content

Commit

Permalink
embulk: remove disabled java_home_cmd
Browse files Browse the repository at this point in the history
Also add `Apache-2.0` license

Closes Homebrew#60794.

Signed-off-by: Sean Molenaar <[email protected]>
Signed-off-by: BrewTestBot <[email protected]>
  • Loading branch information
chenrui333 authored and BrewTestBot committed Sep 9, 2020
1 parent 1770de4 commit b695586
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Formula/embulk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ class Embulk < Formula
# In your production, keep using v0.9.*.
url "https://bintray.com/artifact/download/embulk/maven/embulk-0.9.23.jar"
sha256 "153977fad482bf52100dd96f47e897c87b48de4fb13bccd6b3101475d3a5ebb9"
license "Apache-2.0"
revision 1

livecheck do
url "https://github.com/embulk/embulk.git"
Expand All @@ -21,7 +23,7 @@ def install
libexec.install "embulk-#{version}.jar" => "embulk.jar"
(bin/"embulk").write <<~EOS
#!/bin/bash
export JAVA_HOME=$(#{Language::Java.java_home_cmd("1.8")})
export JAVA_HOME="#{Language::Java.overridable_java_home_env("1.8")[:JAVA_HOME]}"
exec /bin/bash "#{libexec}/embulk.jar" "$@"
EOS
end
Expand Down

0 comments on commit b695586

Please sign in to comment.