mirror of
https://github.com/swift-server/swift-aws-lambda-runtime.git
synced 2026-06-02 07:27:33 +00:00
Direct use of executable URL
This commit is contained in:
@@ -27,7 +27,7 @@ struct Utils {
|
||||
logLevel: ProcessLogLevel
|
||||
) throws -> String {
|
||||
if logLevel >= .debug {
|
||||
print("\(executable.description) \(arguments.joined(separator: " "))")
|
||||
print("\(executable.path()) \(arguments.joined(separator: " "))")
|
||||
}
|
||||
|
||||
let fd = dup(1)
|
||||
@@ -83,7 +83,7 @@ struct Utils {
|
||||
let process = Process()
|
||||
process.standardOutput = pipe
|
||||
process.standardError = pipe
|
||||
process.executableURL = URL(fileURLWithPath: executable.description)
|
||||
process.executableURL = executable
|
||||
process.arguments = arguments
|
||||
if let workingDirectory = customWorkingDirectory {
|
||||
process.currentDirectoryURL = URL(fileURLWithPath: workingDirectory.path())
|
||||
|
||||
Reference in New Issue
Block a user