mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-02-02 16:28:39 +08:00
fix no such dir if not create goctl home (#4177)
This commit is contained in:
parent
424119d796
commit
23980d29c3
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user