mirror of
https://github.com/spf13/cobra
synced 2024-11-24 14:47:12 +00:00
cmd: Fix incorrect cmd dir
This commit is contained in:
parent
7bb5276f5f
commit
7bd35d3b95
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ func findCmdDir(absPath string) string {
|
|||
files, _ := filepath.Glob(filepath.Join(absPath, "c*"))
|
||||
for _, file := range files {
|
||||
if isCmdDir(file) {
|
||||
return file
|
||||
return filepath.Base(file)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue