Add source path, plugin and edition in user scripts

This commit is contained in:
emanuele-f 2019-12-10 19:25:00 +01:00
parent fbbec75c54
commit 15759c8db2
6 changed files with 110 additions and 25 deletions

View file

@ -57,10 +57,10 @@ local function printUserScripts(title, scripts)
end
-- Availability
if(string.find(script.path, "/enterprise/")) then
if(script.edition == "enterprise") then
available = "Enterprise"
if((edition ~= "") and (edition ~= "enterprise")) then goto skip end
elseif(string.find(script.path, "/pro/")) then
elseif(script.edition == "pro") then
available = "Pro"
if((edition ~= "") and (edition ~= "pro")) then goto skip end
else