Remove executable permission bit for chart files.

pull/3122/head
Yecheng Fu 7 years ago
parent f6bff5da94
commit 126f0249a7

@ -93,7 +93,7 @@ func (c *ChartDownloader) DownloadTo(ref, version, dest string) (string, *proven
name := filepath.Base(u.Path) name := filepath.Base(u.Path)
destfile := filepath.Join(dest, name) destfile := filepath.Join(dest, name)
if err := ioutil.WriteFile(destfile, data.Bytes(), 0655); err != nil { if err := ioutil.WriteFile(destfile, data.Bytes(), 0644); err != nil {
return destfile, nil, err return destfile, nil, err
} }
@ -109,7 +109,7 @@ func (c *ChartDownloader) DownloadTo(ref, version, dest string) (string, *proven
return destfile, ver, nil return destfile, ver, nil
} }
provfile := destfile + ".prov" provfile := destfile + ".prov"
if err := ioutil.WriteFile(provfile, body.Bytes(), 0655); err != nil { if err := ioutil.WriteFile(provfile, body.Bytes(), 0644); err != nil {
return destfile, nil, err return destfile, nil, err
} }

Loading…
Cancel
Save