remove "/"
This commit is contained in:
parent
394aa8f937
commit
f52020945d
2
main.go
2
main.go
@ -98,7 +98,7 @@ func DetectionPath(gopath string) string {
|
||||
arrPath := strings.FieldsFunc(path,split)
|
||||
for _,content := range arrPath {
|
||||
fullPath := filepath.Join(content, "src", "github.com", "v2ray", "domain-list-community", "data")
|
||||
_, err1 := os.Stat(fullPath+"/")
|
||||
_, err1 := os.Stat(fullPath)
|
||||
if err1 == nil || os.IsExist(err1) {
|
||||
return fullPath
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user