check version in init.lua within directory plugins
This commit is contained in:
+3
-1
@@ -601,7 +601,9 @@ end
|
||||
local function check_plugin_version(filename)
|
||||
local info = system.get_file_info(filename)
|
||||
if info ~= nil and info.type == "dir" then
|
||||
return true
|
||||
filename = filename .. "/init.lua"
|
||||
info = system.get_file_info(filename)
|
||||
if not info then return true end
|
||||
end
|
||||
local f = io.open(filename, "r")
|
||||
if not f then return false end
|
||||
|
||||
Reference in New Issue
Block a user