Fix config path

This commit is contained in:
Christoph Hagen 2022-02-10 17:19:32 +01:00
parent 4baa6a6973
commit 8b1d63bb95

View File

@ -101,7 +101,7 @@ private func createFileIfNeeded(at path: URL) throws {
private func readConfig(at path: URL) throws -> URL {
do {
let logPath = try String(contentsOf: path)
.trimmingCharacters(in: .whitespaces)
.trimmingCharacters(in: .whitespacesAndNewlines)
return URL(fileURLWithPath: logPath)
} catch {
log("Failed to read configuration file at \(path.path): \(error)")