Build: Fix shell script run under Windows OS; format fixes (sbt fix)

This commit is contained in:
Aljoscha Rittner 2022-03-21 19:25:47 +01:00
parent ee34bc76ed
commit 2744d86625
2 changed files with 3 additions and 3 deletions

View File

@ -999,8 +999,7 @@ def compileElm(
val cmd = (Seq("elm", "make")
++ mode.flags
++ Seq("--output", target.toString)
++ Seq(wd / "src" / "main" / "elm" / "Main.elm").map(_.toString)
)
++ Seq(wd / "src" / "main" / "elm" / "Main.elm").map(_.toString))
Cmd.run(cmd, wd, logger)
val targetGZ = file(target.toString + ".gz")
IO.gzip(target, targetGZ)

View File

@ -25,7 +25,8 @@ object Cmd {
def exec(cmd: Seq[String], wd: Option[File]): Result = {
val command =
sys.props.get("os.name") match {
case Some(name) if name.toLowerCase.startsWith("windows") => Seq ("cmd", "/C") ++ cmd
case Some(name) if name.toLowerCase.startsWith("windows") =>
Seq("cmd", "/C") ++ cmd
case _ => cmd
}
val capt = new Capture