Fix kubectl plugin list overshadow detection on Windows

This commit is contained in:
kita456 2026-02-02 22:09:05 +09:00
parent 07a697046f
commit 7bb838e50b

View file

@ -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 {