# HG changeset patch # User Matthew Wild # Date 1536746211 -3600 # Node ID f7e8b865873fe218877736f2394899e0c04b8c74 # Parent 28b92d201120396a0c6266f9291180b99f8c5094 main: Only process .scs files in directories diff -r 28b92d201120 -r f7e8b865873f main.lua --- a/main.lua Tue Sep 11 23:51:37 2018 +0100 +++ b/main.lua Wed Sep 12 10:56:51 2018 +0100 @@ -92,7 +92,7 @@ end local path = assert(get_value(), "path expected for '-d'"):gsub("/*$", ""); for f in lfs.dir(path) do - if f:sub(1,1) ~= "." then + if f:sub(1,1) ~= "." and f:sub(-4) == ".scs" then table.insert(files, path.."/"..f); end end