Fix hub loader to support '.yml' files (#1433)

This commit is contained in:
AlteredCoder 2022-04-11 16:13:20 +02:00 committed by GitHub
parent a8089c8ddb
commit 099469c5d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {