mirror of
https://github.com/nicklockwood/SwiftFormat.git
synced 2026-06-16 10:34:34 +00:00
Standardize working directory path (#1317)
This commit is contained in:
committed by
Nick Lockwood
parent
f0b3f1a15d
commit
3c4dc6809c
@@ -81,4 +81,6 @@ CLI.print = { message, type in
|
||||
}
|
||||
}
|
||||
|
||||
exit(CLI.run(in: FileManager.default.currentDirectoryPath).rawValue)
|
||||
let currentDirectory = URL(fileURLWithPath: FileManager.default.currentDirectoryPath).standardizedFileURL
|
||||
|
||||
exit(CLI.run(in: currentDirectory.path).rawValue)
|
||||
|
||||
Reference in New Issue
Block a user