summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2015-10-28 17:00:41 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2015-10-28 17:00:41 +0000
commit657e73bf43b93bbd966ad7397154b1b8b6d7829f (patch)
tree886723b54b4506f4e3c0792f6ab93b1dbc1d2169
parent95d25edecbb29c782673e741241c20922763ce75 (diff)
downloadgitano-657e73bf43b93bbd966ad7397154b1b8b6d7829f.tar.bz2
plugins: Don't check for the file type
dirp:iterate()'s fileinfo may not have d_type initialised, do the check could fail even if it was a valid plugin file. I think the filename check is sufficient.
-rw-r--r--lib/gitano/plugins.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitano/plugins.lua b/lib/gitano/plugins.lua
index bdc6d1e..ffa8af0 100644
--- a/lib/gitano/plugins.lua
+++ b/lib/gitano/plugins.lua
@@ -24,7 +24,7 @@ local function find_plugins(path)
else
for filename, fileinfo in dirp:iterate() do
local plugin_name = filename:match(plugin_name_pattern)
- if plugin_name and fileinfo.d_type == luxio.DT_REG then
+ if plugin_name then
if not ret[plugin_name] then
ret[plugin_name] = entry
ret[#ret + 1] = plugin_name