mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-02-18 18:28:18 -05:00
Merge pull request #136689 from kfess/bugfix/windows-plugin
Fix kubectl plugin list overshadow detection on Windows
This commit is contained in:
commit
09259d3dff
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