From 2744d866250e5646709956c54c47c629e225f7c4 Mon Sep 17 00:00:00 2001 From: Aljoscha Rittner Date: Mon, 21 Mar 2022 19:25:47 +0100 Subject: [PATCH] Build: Fix shell script run under Windows OS; format fixes (sbt fix) --- build.sbt | 3 +-- project/Cmd.scala | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.sbt b/build.sbt index dc59e8e3..3a9236cc 100644 --- a/build.sbt +++ b/build.sbt @@ -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) diff --git a/project/Cmd.scala b/project/Cmd.scala index ebeb7dfd..e508cf4f 100644 --- a/project/Cmd.scala +++ b/project/Cmd.scala @@ -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