Adding logic to ignore non-lua files

This commit is contained in:
Wires77
2021-05-13 14:26:18 -05:00
parent ad65091d69
commit 4f33e79552

View File

@@ -7,7 +7,7 @@ local function fetchBuilds(path, buildList)
assert(type(attr) == "table")
if attr.mode == "directory" then
fetchBuilds(f, buildList)
else
elseif file:match("^.+(%..+)$") == ".lua" then
buildList[file] = LoadModule(f)
end
end