sbt@0.13: fix how we get the Java home

master
Nicholas Chammas 2020-09-09 12:17:21 -04:00 committed by BrewTestBot
parent 4d31e40521
commit d6ee307f82
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_cmd("1.8")})
export JAVA_HOME="#{Language::Java.java_home("1.8")}"
if [ -f "$HOME/.sbtconfig" ]; then
echo "Use of ~/.sbtconfig is deprecated, please migrate global settings to #{etc}/sbtopts" >&2
. "$HOME/.sbtconfig"