mirror of
https://github.com/kubernetes/kubectl.git
synced 2026-02-18 18:17:53 -05:00
Fix kubectl plugin list overshadow detection on Windows
Kubernetes-commit: 7bb838e50b5b878b19151bd03cb3e20bf8746740
This commit is contained in:
parent
50c35e77ed
commit
f082187cdc
1 changed files with 1 additions and 2 deletions
|
|
@ -217,8 +217,7 @@ func (v *CommandOverrideVerifier) Verify(path string) []error {
|
|||
}
|
||||
|
||||
// extract the plugin binary name
|
||||
segs := strings.Split(path, "/")
|
||||
binName := segs[len(segs)-1]
|
||||
binName := filepath.Base(path)
|
||||
|
||||
cmdPath := strings.Split(binName, "-")
|
||||
if len(cmdPath) > 1 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue