Fix Linux bug

This commit is contained in:
Christoph Hagen 2023-11-22 11:49:39 +01:00
parent 3fa699e9bf
commit 1fd63b8cc3

View File

@ -27,11 +27,8 @@ struct Config: Codable {
guard !logPath.hasPrefix("/") else { guard !logPath.hasPrefix("/") else {
return .init(fileURLWithPath: logPath) return .init(fileURLWithPath: logPath)
} }
guard #available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *) else {
return resourcesDirectory.appendingPathComponent(logPath) return resourcesDirectory.appendingPathComponent(logPath)
} }
return resourcesDirectory.appending(path: logPath)
}
} }
extension Config { extension Config {