From b80a604b460f735330fdf708f2b52d81e3a59a03 Mon Sep 17 00:00:00 2001 From: ollo Date: Fri, 30 Dec 2016 13:39:22 +0100 Subject: [PATCH] Only try to compile lua files --- init.lua | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/init.lua b/init.lua index d8aca43..2a8574e 100644 --- a/init.lua +++ b/init.lua @@ -17,10 +17,15 @@ function recompileAll() if (string.find(k, ".lc", -3)) then print ("Skipping " .. k) elseif (string.find(blacklistfile, k) == nil) then - print("Compiling and deleting " .. k) - node.compile(k) - -- remove the lua file - file.remove(k) + -- Only look at lua files + if (string.find(k, ".lua") ~= nil) then + print("Compiling and deleting " .. k) + node.compile(k) + -- remove the lua file + file.remove(k) + else + print("No code: " .. k) + end end end end