Skip to content

Commit 036197f

Browse files
authored
Use executableURL in build script (#337)
1 parent 6edf988 commit 036197f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Scripts/build.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import Foundation
66

77
func execute(commandPath: String, arguments: [String]) throws {
88
let task = Process()
9-
task.launchPath = commandPath
9+
task.executableURL = .init(filePath: commandPath)
1010
task.arguments = arguments
1111
print("Launching command: \(commandPath) \(arguments.joined(separator: " "))")
12-
task.launch()
12+
try task.run()
1313
task.waitUntilExit()
1414
guard task.terminationStatus == 0 else {
1515
throw TaskError.code(task.terminationStatus)

0 commit comments

Comments
 (0)