Skip to content

Commit

Permalink
improvement: Don't allow empty sbtScript setting
Browse files Browse the repository at this point in the history
  • Loading branch information
tgodzik committed Aug 19, 2024
1 parent e537ad6 commit eea6c3d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,12 @@ case class SbtBuildTool(
workspace: AbsolutePath,
sbtLauncherOutDir: Path,
): List[String] = {
val sbtScript = userConfig().sbtScript.orElse(findSbtInPath())
val sbtScript = userConfig().sbtScript.orElse(findSbtInPath()).map(_.trim())

sbtScript match {
case Some(script) =>
case Some(script) if script.nonEmpty =>
script :: sbtArgs
case None =>
case _ =>
val javaArgs = List[String](
JavaBinary(userConfig().javaHome),
"-Djline.terminal=jline.UnsupportedTerminal",
Expand Down

0 comments on commit eea6c3d

Please sign in to comment.