From c859498d6874e84f9f2e3344dcfa609a5e3a8481 Mon Sep 17 00:00:00 2001 From: lqdev Date: Sun, 25 Apr 2021 19:14:36 +0200 Subject: [PATCH] check version in init.lua within directory plugins --- data/core/init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/data/core/init.lua b/data/core/init.lua index a115e821..45490148 100644 --- a/data/core/init.lua +++ b/data/core/init.lua @@ -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