Skip to content

Commit dd7b683

Browse files
committed
Allow specifying environment for Process on Windows
1 parent 5b0e9a8 commit dd7b683

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/TSCBasic/Process.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ public final class Process: ObjectIdentifierProtocol {
326326
_process = Foundation.Process()
327327
_process?.arguments = arguments
328328
_process?.executableURL = URL(fileURLWithPath: arguments[0])
329+
_process?.environment = environment
329330

330331
if outputRedirection.redirectsOutput {
331332
let stdoutPipe = Pipe()

0 commit comments

Comments
 (0)