Only try to compile lua files
This commit is contained in:
parent
687a2bbbb9
commit
b80a604b46
5
init.lua
5
init.lua
@ -17,10 +17,15 @@ function recompileAll()
|
|||||||
if (string.find(k, ".lc", -3)) then
|
if (string.find(k, ".lc", -3)) then
|
||||||
print ("Skipping " .. k)
|
print ("Skipping " .. k)
|
||||||
elseif (string.find(blacklistfile, k) == nil) then
|
elseif (string.find(blacklistfile, k) == nil) then
|
||||||
|
-- Only look at lua files
|
||||||
|
if (string.find(k, ".lua") ~= nil) then
|
||||||
print("Compiling and deleting " .. k)
|
print("Compiling and deleting " .. k)
|
||||||
node.compile(k)
|
node.compile(k)
|
||||||
-- remove the lua file
|
-- remove the lua file
|
||||||
file.remove(k)
|
file.remove(k)
|
||||||
|
else
|
||||||
|
print("No code: " .. k)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user