|
|
@ -45,11 +45,7 @@ func Save(c *Chart, outDir string) (string, error) {
|
|
|
|
|
|
|
|
|
|
|
|
cfile := c.Chartfile()
|
|
|
|
cfile := c.Chartfile()
|
|
|
|
dir := c.Dir()
|
|
|
|
dir := c.Dir()
|
|
|
|
basename := filepath.Base(dir)
|
|
|
|
|
|
|
|
pdir := filepath.Dir(dir)
|
|
|
|
pdir := filepath.Dir(dir)
|
|
|
|
if basename == "." {
|
|
|
|
|
|
|
|
basename = fname(cfile.Name)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
filename := fmt.Sprintf("%s-%s.tgz", fname(cfile.Name), cfile.Version)
|
|
|
|
filename := fmt.Sprintf("%s-%s.tgz", fname(cfile.Name), cfile.Version)
|
|
|
|
filename = filepath.Join(outDir, filename)
|
|
|
|
filename = filepath.Join(outDir, filename)
|
|
|
|
|
|
|
|
|
|
|
|