mirror of
https://github.com/beego/bee.git
synced 2025-02-22 14:37:12 +00:00
Fix compare symlink to path
Now will compare path with path, symlink with symlink.
This commit is contained in:
parent
c6141fb671
commit
866fea3504
@ -992,8 +992,8 @@ func getPackagePath(curpath string) (packpath string) {
|
|||||||
|
|
||||||
//Maybe is a symlink
|
//Maybe is a symlink
|
||||||
wg, _ = filepath.EvalSymlinks(path.Join(wg, "src"))
|
wg, _ = filepath.EvalSymlinks(path.Join(wg, "src"))
|
||||||
|
cur,_ := filepath.EvalSymlinks(curpath)
|
||||||
if filepath.HasPrefix(strings.ToLower(curpath), strings.ToLower(wg)) {
|
if filepath.HasPrefix(strings.ToLower(cur), strings.ToLower(wg)) {
|
||||||
haspath = true
|
haspath = true
|
||||||
appsrcpath = wg
|
appsrcpath = wg
|
||||||
break
|
break
|
||||||
|
Loading…
x
Reference in New Issue
Block a user