Skip to content

Commit e5c7760

Browse files
authored
Merge pull request #92 from egorzhdan/windows
Allow specifying environment for Process on Windows
2 parents 04c2370 + dd7b683 commit e5c7760

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
@@ -348,6 +348,7 @@ public final class Process: ObjectIdentifierProtocol {
348348
_process = Foundation.Process()
349349
_process?.arguments = arguments
350350
_process?.executableURL = URL(fileURLWithPath: arguments[0])
351+
_process?.environment = environment
351352

352353
if outputRedirection.redirectsOutput {
353354
let stdoutPipe = Pipe()

0 commit comments

Comments
 (0)