mirror of https://github.com/beego/bee.git
fix #6
This commit is contained in:
parent
e96f207991
commit
19a7fc4612
|
@ -57,7 +57,7 @@ func createapp(cmd *Command, args []string) {
|
||||||
wg = wg + `\src`
|
wg = wg + `\src`
|
||||||
if strings.HasPrefix(crupath, wg) {
|
if strings.HasPrefix(crupath, wg) {
|
||||||
haspath = true
|
haspath = true
|
||||||
appsrcpath = path.Join(strings.TrimLeft(crupath, wg), args[0])
|
appsrcpath = path.Join(strings.TrimPrefix(crupath, wg), args[0])
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -68,7 +68,7 @@ func createapp(cmd *Command, args []string) {
|
||||||
for _, wg := range lgopath {
|
for _, wg := range lgopath {
|
||||||
if strings.HasPrefix(crupath, path.Join(wg, "src")) {
|
if strings.HasPrefix(crupath, path.Join(wg, "src")) {
|
||||||
haspath = true
|
haspath = true
|
||||||
appsrcpath = path.Join(strings.TrimLeft(crupath, path.Join(wg, "src")), args[0])
|
appsrcpath = path.Join(strings.TrimPrefix(crupath, path.Join(wg, "src")), args[0])
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue