cmd: Fix incorrect cmd dir

This commit is contained in:
Albert Nigmatzianov 2017-05-05 10:31:07 +02:00
parent 7bb5276f5f
commit 7bd35d3b95

View File

@ -138,7 +138,7 @@ func findCmdDir(absPath string) string {
files, _ := filepath.Glob(filepath.Join(absPath, "c*")) files, _ := filepath.Glob(filepath.Join(absPath, "c*"))
for _, file := range files { for _, file := range files {
if isCmdDir(file) { if isCmdDir(file) {
return file return filepath.Base(file)
} }
} }