fix(clustertool): fix pathing issues with dependency fetching

This commit is contained in:
Kjeld Schouten
2025-04-08 12:02:34 +02:00
parent c3b3a402bf
commit 018fa419a0
+5 -1
View File
@@ -72,7 +72,11 @@ func HelmPull(repo string, name string, version string, dest string, silent bool
client.Settings = settings
client.RepoURL = repo
client.Version = version
client.DestDir = filepath.Join(helper.HelmCache, dest)
if dest != "" {
client.DestDir = dest
} else {
client.DestDir = helper.HelmCache
}
// Create cache directory
if err := os.MkdirAll(client.DestDir, os.ModePerm); err != nil {