Fixed bug in linux version for downloading the first plugin only whatever the plugin name was
This commit is contained in:
@@ -38,7 +38,8 @@ public class Plugin: ICommandAction
|
||||
#if !DEBUG
|
||||
new PluginsManager();
|
||||
#else
|
||||
new PluginsManager("tests");
|
||||
// new PluginsManager("tests");
|
||||
new PluginsManager();
|
||||
#endif
|
||||
|
||||
switch (args[0])
|
||||
|
||||
@@ -147,13 +147,15 @@ public class PluginsManager
|
||||
}
|
||||
}
|
||||
else if (Functions.GetOperatingSystem() == OperatingSystem.LINUX && contents[4].Contains("Linux"))
|
||||
{
|
||||
if (contents[0].ToLowerInvariant() == name.ToLowerInvariant())
|
||||
{
|
||||
if (contents.Length == 6)
|
||||
return new[] { contents[2], contents[3], contents[5] };
|
||||
if (contents.Length == 5)
|
||||
return new[] { contents[2], contents[3], string.Empty };
|
||||
throw new Exception("Failed to download plugin. Invalid Argument Length");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user