From 111f08fdcf15455e5cd12861c2887a2acbd1dde3 Mon Sep 17 00:00:00 2001 From: Robin Kunde Date: Wed, 10 Jan 2024 13:44:02 -0500 Subject: [PATCH] Remove newline from derived data path returned by defaults --- .../Sources/AcknowledgementsGenerator/Tools/Xcode.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Xcodes/AcknowledgementsGenerator/Sources/AcknowledgementsGenerator/Tools/Xcode.swift b/Xcodes/AcknowledgementsGenerator/Sources/AcknowledgementsGenerator/Tools/Xcode.swift index 87109310..ab6ed167 100644 --- a/Xcodes/AcknowledgementsGenerator/Sources/AcknowledgementsGenerator/Tools/Xcode.swift +++ b/Xcodes/AcknowledgementsGenerator/Sources/AcknowledgementsGenerator/Tools/Xcode.swift @@ -35,7 +35,7 @@ private extension Xcode { try? task.run() let handle = pipe.fileHandleForReading let data = handle.readDataToEndOfFile() - let path = String(data: data, encoding: String.Encoding.utf8) + let path = String(data: data, encoding: String.Encoding.utf8)?.trimmingCharacters(in: .whitespacesAndNewlines) return (path?.isEmpty ?? true) ? nil : path } }