Skip to content

Commit fc65c3c

Browse files
authored
Fix #409
Direct use of executable URL
1 parent e5b120d commit fc65c3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Plugins/AWSLambdaPackager/PluginUtils.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ struct Utils {
2727
logLevel: ProcessLogLevel
2828
) throws -> String {
2929
if logLevel >= .debug {
30-
print("\(executable.description) \(arguments.joined(separator: " "))")
30+
print("\(executable.path()) \(arguments.joined(separator: " "))")
3131
}
3232

3333
let fd = dup(1)
@@ -83,7 +83,7 @@ struct Utils {
8383
let process = Process()
8484
process.standardOutput = pipe
8585
process.standardError = pipe
86-
process.executableURL = URL(fileURLWithPath: executable.description)
86+
process.executableURL = executable
8787
process.arguments = arguments
8888
if let workingDirectory = customWorkingDirectory {
8989
process.currentDirectoryURL = URL(fileURLWithPath: workingDirectory.path())

0 commit comments

Comments
 (0)