We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6edf988 commit 036197fCopy full SHA for 036197f
Scripts/build.swift
@@ -6,10 +6,10 @@ import Foundation
6
7
func execute(commandPath: String, arguments: [String]) throws {
8
let task = Process()
9
- task.launchPath = commandPath
+ task.executableURL = .init(filePath: commandPath)
10
task.arguments = arguments
11
print("Launching command: \(commandPath) \(arguments.joined(separator: " "))")
12
- task.launch()
+ try task.run()
13
task.waitUntilExit()
14
guard task.terminationStatus == 0 else {
15
throw TaskError.code(task.terminationStatus)
0 commit comments