Skip to content

Commit

Permalink
Merge pull request #86 from replicatedhq/emosbaugh/ch22575/kots-repli…
Browse files Browse the repository at this point in the history
…cated-cli-yaml-dir-option-uses

Failure to strip path prefix for yaml-dir option
  • Loading branch information
emosbaugh authored Jan 15, 2020
2 parents 1633de5 + eeaf605 commit f6a53e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/cmd/release_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func encodeKotsFile(prefix, path string, info os.FileInfo, err error) (*kotsSing
return nil, err
}

singlefile := strings.TrimPrefix(path, prefix)
singlefile := strings.TrimPrefix(filepath.Clean(path), filepath.Clean(prefix)+"/")

if info.IsDir() {
return nil, nil
Expand Down

0 comments on commit f6a53e0

Please sign in to comment.