We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2db1363 commit f070c23Copy full SHA for f070c23
Plugins/InstallCLI/InstallCLIPluginCommand.swift
@@ -16,10 +16,13 @@ struct InstallCLIPluginCommand: CommandPlugin {
16
let process = Process()
17
let url = try context.tool(named: "sh").url
18
process.executableURL = URL(fileURLWithPath: url.absoluteString)
19
- process.arguments = [
20
- "\(dep.package.directoryURL)/scripts/download-cli.sh",
21
- context.package.directoryURL.absoluteString
22
- ]
+
+ let downloadScriptPath = dep.package.directoryURL
+ .appendingPathComponent("scripts/download-cli.sh")
+ .standardized
23
+ .relativePath
24
+ process.arguments = [downloadScriptPath, context.package.directoryURL.standardized.relativePath]
25
26
try process.run()
27
process.waitUntilExit()
28
}
0 commit comments