Skip to content

Commit

Permalink
Use executableURL in build script (#337)
Browse files Browse the repository at this point in the history
  • Loading branch information
dfed authored Feb 23, 2025
1 parent 6edf988 commit 036197f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Scripts/build.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import Foundation

func execute(commandPath: String, arguments: [String]) throws {
let task = Process()
task.launchPath = commandPath
task.executableURL = .init(filePath: commandPath)
task.arguments = arguments
print("Launching command: \(commandPath) \(arguments.joined(separator: " "))")
task.launch()
try task.run()
task.waitUntilExit()
guard task.terminationStatus == 0 else {
throw TaskError.code(task.terminationStatus)
Expand Down

0 comments on commit 036197f

Please sign in to comment.