Use os.Create when expanding plugins
This commit is contained in:
parent
96088dd56f
commit
f2cdc8a9ee
|
@ -86,7 +86,7 @@ func (info PluginInfo) Install(tarball io.ReadCloser) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
// If so, expand it into the plugin home directory.
|
// If so, expand it into the plugin home directory.
|
||||||
dst, err := os.Open(filepath.Join(pluginDir, header.Name))
|
dst, err := os.Create(filepath.Join(pluginDir, header.Name))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue