mirror of
https://github.com/beego/bee.git
synced 2024-11-21 18:40:54 +00:00
Evaluate symlinks before comparing path.
This commit is contained in:
parent
f321e15db8
commit
61ed8f285b
2
new.go
2
new.go
@ -56,7 +56,7 @@ func createApp(cmd *Command, args []string) {
|
||||
|
||||
wgopath := path.SplitList(gopath)
|
||||
for _, wg := range wgopath {
|
||||
wg = path.Join(wg, "src")
|
||||
wg, _ = path.EvalSymlinks(path.Join(wg, "src"))
|
||||
|
||||
if strings.HasPrefix(strings.ToLower(curpath), strings.ToLower(wg)) {
|
||||
haspath = true
|
||||
|
Loading…
Reference in New Issue
Block a user