From 7bd35d3b95868553e9116dfc2a9fe03377e503a7 Mon Sep 17 00:00:00 2001 From: Albert Nigmatzianov Date: Fri, 5 May 2017 10:31:07 +0200 Subject: [PATCH] cmd: Fix incorrect cmd dir --- cobra/cmd/project.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cobra/cmd/project.go b/cobra/cmd/project.go index facd80a..a3e6d91 100644 --- a/cobra/cmd/project.go +++ b/cobra/cmd/project.go @@ -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) } }