From c49fdca7aa7165040a6a3e94f0a1721c618a498d Mon Sep 17 00:00:00 2001 From: Gskartwii Date: Sun, 25 Sep 2016 20:18:42 +0300 Subject: [PATCH] Ignore directories named *.moon (#290) --- bin/moonc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bin/moonc b/bin/moonc index 3046937..dfd5696 100755 --- a/bin/moonc +++ b/bin/moonc @@ -70,9 +70,7 @@ local function scan_directory(root, collected) if lfs.attributes(full_path, "mode") == "directory" then scan_directory(full_path, collected) - end - - if fname:match("%.moon$") then + elseif fname:match("%.moon$") then table.insert(collected, full_path) end end