fix(clustertool): handle with oci repository reference with trailing slash
This commit is contained in:
@@ -99,7 +99,12 @@ func HelmPull(repo string, name string, version string, dest string, silent bool
|
||||
updateHelmRepo(repoName, repo, silent)
|
||||
repo = repoName
|
||||
} else {
|
||||
link = repo + "/" + name
|
||||
link := repo
|
||||
if !strings.HasSuffix(repo, "/") {
|
||||
link += "/"
|
||||
}
|
||||
link += name
|
||||
client.RepoURL = ""
|
||||
client.RepoURL = ""
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user