fix: fix kratos run when cmd number is one (#1956)

feat/error_middleware
haiyux 3 years ago committed by GitHub
parent d4c4908ef6
commit 73545347e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      cmd/kratos/internal/run/run.go

@ -42,8 +42,8 @@ func Run(cmd *cobra.Command, args []string) {
fmt.Fprintf(os.Stderr, "\033[31mERROR: %s\033[m\n", "The cmd directory cannot be found in the current directory")
return
} else if len(cmdPath) == 1 {
for k, v := range cmdPath {
dir = path.Join(v, k)
for _, v := range cmdPath {
dir = v
}
} else {
var cmdPaths []string

Loading…
Cancel
Save