New ๐ŸŒŠ wave for @helm

Commit a614cc40

a614cc4023beMerged

zhilyaev <[email protected]> ยท 5 years ago ยท 3 files ยท ~3 modified

Description

filepath

Details

Commit
a614cc4023be
Parent
f1e7e5460266

pkg/plan/export.gomodifiedView file

@@ -2,6 +2,7 @@
22
33 import (
44 "os"
5+ "path/filepath"
56
67 "github.com/helmwave/helmwave/pkg/helper"
78 )
@@ -30,7 +31,7 @@
3031
3132 func (p *Plan) exportManifest() error {
3233 for k, v := range p.manifests {
33- m := p.dir + Manifest + string(k)
34+ m := filepath.Join(p.dir, Manifest, string(k))
3435
3536 f, err := helper.CreateFile(m)
3637 if err != nil {
@@ -52,7 +53,7 @@
5253 }
5354
5455 func (p *Plan) exportGraphMD() error {
55- f, err := helper.CreateFile(p.dir + "graph.md")
56+ f, err := helper.CreateFile(filepath.Join(p.dir, "graph.md"))
5657 if err != nil {
5758 return err
5859 }
@@ -72,5 +73,5 @@
7273
7374 // IsManifestExist returns true if planfile exists
7475 func (p *Plan) IsManifestExist() bool {
75- return helper.IsExists(p.dir + Manifest)
76+ return helper.IsExists(filepath.Join(p.dir, Manifest))
7677 }