Commit a1b5b692 authored by Herbert Mühlburger's avatar Herbert Mühlburger

Refactor to be more precise

parent dcdeefbd
......@@ -24,7 +24,6 @@ import (
"io/ioutil"
"os"
"path/filepath"
"strings"
"github.com/ghodss/yaml"
......@@ -205,9 +204,8 @@ func writeTarContents(out *tar.Writer, c *chart.Chart, prefix string) error {
// writeToTar writes a single file to a tar archive.
func writeToTar(out *tar.Writer, name string, body []byte) error {
// TODO: Do we need to create dummy parent directory names if none exist?
name = strings.Replace(name, "\\", "/", -1)
h := &tar.Header{
Name: name,
Name: filepath.ToSlash(name),
Mode: 0755,
Size: int64(len(body)),
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment