Skip to content

Commit

Permalink
Merge pull request #472 from robinkunde/rk/fixDerivedDataPath
Browse files Browse the repository at this point in the history
Remove newline from derived data path returned by defaults
  • Loading branch information
MattKiazyk authored Jan 24, 2024
2 parents fb7e1f6 + 111f08f commit 2418d22
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 2418d22

Please sign in to comment.