mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-03-26 09:05:06 +00:00
Build: Fix shell script run under Windows OS; format fixes (sbt fix)
This commit is contained in:
parent
ee34bc76ed
commit
2744d86625
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user