Skip to content

Commit

Permalink
Also escape \ in the default output directory
Browse files Browse the repository at this point in the history
  • Loading branch information
hamzaremmal committed Sep 19, 2024
1 parent ee511b0 commit 7aa4ac9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ object Build {
}

val wrappedArgs = if (printTasty) args else insertClasspathInArgs(args, extraClasspath.mkString(File.pathSeparator))
val fullArgs = main :: defaultOutputDirectory ::: wrappedArgs.map("\""+ _ + "\"").map(_.replace("\\", "\\\\"))
val fullArgs = main :: (defaultOutputDirectory ::: wrappedArgs).map("\""+ _ + "\"").map(_.replace("\\", "\\\\"))

(Compile / runMain).toTask(fullArgs.mkString(" ", " ", ""))
}.evaluated,
Expand Down

0 comments on commit 7aa4ac9

Please sign in to comment.