mirror of https://github.com/helm/helm
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
480 B
21 lines
480 B
--- internal/plugin/runtime_subprocess_getter.go
|
|
+++ internal/plugin/runtime_subprocess_getter.go
|
|
@@ -1,6 +1,7 @@
|
|
package plugin
|
|
|
|
import (
|
|
+ "filepath"
|
|
"os/exec"
|
|
"strings"
|
|
)
|
|
@@ -80,7 +81,8 @@ func (r *RuntimeSubprocessGetter) Get(name string) (*Plugin, error) {
|
|
return nil, err
|
|
}
|
|
|
|
- cmd := exec.Command(p.Metadata.Command, args...)
|
|
+ cleanCmd := filepath.Clean(p.Metadata.Command)
|
|
+ cmd := exec.Command(cleanCmd, args...)
|
|
cmd.Env = os.Environ()
|
|
|
|
return p, nil
|