Skip to content

Commit c44e621

Browse files
committed
Fix current directory url creation
1 parent c61b04a commit c44e621

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Runner/Commands/Runner.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,9 @@ func runDanger(version dangerSwiftVersion: String, logger: Logger) throws {
159159
proc.arguments = args
160160
let standardOutput = FileHandle.standardOutput
161161
if let cwdOptionIndex = CommandLine.arguments.firstIndex(of: DangeSwiftRunnerOption.cwd.rawValue),
162-
(cwdOptionIndex + 1) < CommandLine.arguments.count,
163-
let directoryURL = URL(string: CommandLine.arguments[cwdOptionIndex + 1])
162+
(cwdOptionIndex + 1) < CommandLine.arguments.count
164163
{
164+
let directoryURL = URL(fileURLWithPath: CommandLine.arguments[cwdOptionIndex + 1])
165165
proc.currentDirectoryURL = directoryURL
166166
}
167167
proc.standardOutput = standardOutput

0 commit comments

Comments
 (0)