mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-07 15:10:01 +08:00
fix no such dir if not create goctl home (#4177)
This commit is contained in:
@@ -102,7 +102,9 @@ func GetDefaultGoctlHome() (string, error) {
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
return filepath.Join(home, goctlDir), nil
|
||||
goctlHomeDir := filepath.Join(home, goctlDir)
|
||||
_ = MkdirIfNotExist(goctlHomeDir)
|
||||
return goctlHomeDir, nil
|
||||
}
|
||||
|
||||
// GetGitHome returns the git home of goctl.
|
||||
|
||||
Reference in New Issue
Block a user