Skip to content

Commit f070c23

Browse files
calvincestarigh-action-runner
authored andcommitted
fix: SPM CLI installation (apollographql/apollo-ios-dev#795)
1 parent 2db1363 commit f070c23

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Plugins/InstallCLI/InstallCLIPluginCommand.swift

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,13 @@ struct InstallCLIPluginCommand: CommandPlugin {
1616
let process = Process()
1717
let url = try context.tool(named: "sh").url
1818
process.executableURL = URL(fileURLWithPath: url.absoluteString)
19-
process.arguments = [
20-
"\(dep.package.directoryURL)/scripts/download-cli.sh",
21-
context.package.directoryURL.absoluteString
22-
]
19+
20+
let downloadScriptPath = dep.package.directoryURL
21+
.appendingPathComponent("scripts/download-cli.sh")
22+
.standardized
23+
.relativePath
24+
process.arguments = [downloadScriptPath, context.package.directoryURL.standardized.relativePath]
25+
2326
try process.run()
2427
process.waitUntilExit()
2528
}

0 commit comments

Comments
 (0)