Fix Linux build by appendingPathComponent instead of appending(path:)

This commit is contained in:
Yuta Saito 2024-03-19 17:52:38 +09:00
parent f576362845
commit b7c6c5a3ce
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ private struct Curl: WebDriverHTTPClient {
let pathSeparator: Character = ":"
#endif
for pathEntry in path.split(separator: pathSeparator) {
let candidate = URL(fileURLWithPath: String(pathEntry)).appending(path: "curl")
let candidate = URL(fileURLWithPath: String(pathEntry)).appendingPathComponent("curl")
if FileManager.default.fileExists(atPath: candidate.path) {
return Curl(cliPath: candidate)
}