Skip to content

Commit 11fabd3

Browse files
troughtonaciidgh
authored andcommitted
Process: avoid including the executable URL twice on Windows
1 parent 2f78353 commit 11fabd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/TSCBasic/Process.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ public final class Process: ObjectIdentifierProtocol {
346346

347347
#if os(Windows)
348348
_process = Foundation.Process()
349-
_process?.arguments = arguments
349+
_process?.arguments = Array(arguments.dropFirst()) // Avoid including the executable URL twice.
350350
_process?.executableURL = URL(fileURLWithPath: arguments[0])
351351
_process?.environment = environment
352352

0 commit comments

Comments
 (0)