Skip to content

Commit

Permalink
Use new WorkingDirectory API
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Dec 23, 2023
1 parent 985fb74 commit d02a8b7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/core/guillotine.scala
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,7 @@ case class Command(arguments: Text*) extends Executable:
def fork[ResultType]()(using working: WorkingDirectory, log: Log[Text], exec: Raises[ExecError]): Process[Exec, ResultType] =
val processBuilder = ProcessBuilder(arguments.ss*)

working.directory.let: directory =>
processBuilder.directory(ji.File(directory.s))
processBuilder.directory(ji.File(working.directory().s))

//Log.info(msg"Starting process ${this}")

Expand All @@ -248,8 +247,7 @@ case class Pipeline(commands: Command*) extends Executable:
val processBuilders = commands.map: command =>
val processBuilder = ProcessBuilder(command.arguments.ss*)

working.directory.let: directory =>
processBuilder.directory(ji.File(directory.s))
processBuilder.directory(ji.File(working.directory().s))

processBuilder.nn

Expand Down

0 comments on commit d02a8b7

Please sign in to comment.