purge plugin directory on `helm plugin remove plug`

><> ./bin/helm plugin remove lintr
    Error: Failed to remove plugin lintr, got error (remove /home/bacongobbler/.helm/plugins/helm-lintr: directory not empty)
pull/4068/head
Matthew Fisher 7 years ago
parent 53ea80b2d7
commit 312ad4620d
No known key found for this signature in database
GPG Key ID: 92AA783CBAAE8E3B

@ -82,7 +82,7 @@ func (o *pluginRemoveOptions) run(out io.Writer) error {
}
func removePlugin(p *plugin.Plugin) error {
if err := os.Remove(p.Dir); err != nil {
if err := os.RemoveAll(p.Dir); err != nil {
return err
}
return runHook(p, plugin.Delete)

Loading…
Cancel
Save