summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2015-10-28 17:14:12 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2015-10-30 18:59:04 +0100
commitc5045a3010a1fe91b859df0e76f643fbd514dee1 (patch)
treea8f03953dce5c925f9864311f33fe399e21a77d6
parent92153e6b558845f696c669dd1cafe49b789e2b9f (diff)
downloadgitano-c5045a3010a1fe91b859df0e76f643fbd514dee1.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