check version in init.lua within directory plugins
This commit is contained in:
parent
34e94bb8aa
commit
c859498d68
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue