This commit is contained in:
Richard Chen 2018-08-23 09:33:40 +08:00
parent b440b57fbf
commit cc90b4ea10
No known key found for this signature in database
GPG Key ID: C789FC6FC2E7BD21

View File

@ -95,8 +95,8 @@ func split(r rune) bool {
}
func DetectionPath(gopath string) string {
path := os.Getenv(gopath)
arrPath := strings.FieldsFunc(path,split)
for _,content := range arrPath {
arrPath := strings.FieldsFunc(path, split)
for _, content := range arrPath {
fullPath := filepath.Join(content, "src", "github.com", "v2ray", "domain-list-community", "data")
_, err := os.Stat(fullPath)
if err == nil || os.IsExist(err) {