Skip to content

Commit eb1d7c8

Browse files
authored
Move off of deprecated API in build script (#234)
1 parent 6df94cd commit eb1d7c8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Scripts/build.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Foundation
66

77
func execute(commandPath: String, arguments: [String], pipedTo pipeProcess: Process? = nil) throws {
88
let task = Process()
9-
task.launchPath = commandPath
9+
task.executableURL = .init(filePath: commandPath)
1010
task.arguments = arguments
1111

1212
let argumentsString = arguments
@@ -30,9 +30,9 @@ func execute(commandPath: String, arguments: [String], pipedTo pipeProcess: Proc
3030
print("Launching command: \(commandPath) \(argumentsString)")
3131
}
3232

33-
task.launch()
33+
try task.run()
3434

35-
pipeProcess?.launch()
35+
try pipeProcess?.run()
3636

3737
task.waitUntilExit()
3838

0 commit comments

Comments
 (0)