java_home -> overridable_java_home_env

Closes #60851.

Signed-off-by: Sean Molenaar <1484494+SMillerDev@users.noreply.github.com>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
master
Nicholas Chammas 2020-09-10 10:22:16 -04:00 committed by BrewTestBot
parent d6ee307f82
commit dca25827bb
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ class SbtAT013 < Formula
(bin/"sbt").write <<~EOS
#!/bin/sh
export JAVA_HOME="#{Language::Java.java_home("1.8")}"
export JAVA_HOME="#{Language::Java.overridable_java_home_env("1.8")[:JAVA_HOME]}"
if [ -f "$HOME/.sbtconfig" ]; then
echo "Use of ~/.sbtconfig is deprecated, please migrate global settings to #{etc}/sbtopts" >&2
. "$HOME/.sbtconfig"