Skip to content

Commit

Permalink
Fix current directory url creation
Browse files Browse the repository at this point in the history
f-meloni committed Jan 29, 2025
1 parent c61b04a commit c44e621
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Runner/Commands/Runner.swift
Original file line number Diff line number Diff line change
@@ -159,9 +159,9 @@ func runDanger(version dangerSwiftVersion: String, logger: Logger) throws {
proc.arguments = args
let standardOutput = FileHandle.standardOutput
if let cwdOptionIndex = CommandLine.arguments.firstIndex(of: DangeSwiftRunnerOption.cwd.rawValue),
(cwdOptionIndex + 1) < CommandLine.arguments.count,
let directoryURL = URL(string: CommandLine.arguments[cwdOptionIndex + 1])
(cwdOptionIndex + 1) < CommandLine.arguments.count
{
let directoryURL = URL(fileURLWithPath: CommandLine.arguments[cwdOptionIndex + 1])
proc.currentDirectoryURL = directoryURL
}
proc.standardOutput = standardOutput

0 comments on commit c44e621

Please sign in to comment.