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 function check_plugin_version(filename)
|
||||||
local info = system.get_file_info(filename)
|
local info = system.get_file_info(filename)
|
||||||
if info ~= nil and info.type == "dir" then
|
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
|
end
|
||||||
local f = io.open(filename, "r")
|
local f = io.open(filename, "r")
|
||||||
if not f then return false end
|
if not f then return false end
|
||||||
|
|||||||
Reference in New Issue
Block a user