Fix hub loader to support '.yml' files (#1433)
This commit is contained in:
parent
a8089c8ddb
commit
099469c5d2
|
@ -161,7 +161,7 @@ func parser_visit(path string, f os.FileInfo, err error) error {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
//wrong file
|
//wrong file
|
||||||
if v.Name+".yaml" != fauthor+"/"+fname {
|
if v.Name+".yaml" != fauthor+"/"+fname && v.Name+".yml" != fauthor+"/"+fname {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if path == hubdir+"/"+v.RemotePath {
|
if path == hubdir+"/"+v.RemotePath {
|
||||||
|
|
Loading…
Reference in a new issue