Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Fix uninstall plugin (2x) #376

Merged
merged 1 commit into from
May 29, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions neo-cli/Shell/MainService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1334,6 +1334,13 @@ private bool OnUnInstallCommand(string[] args)
}

var pluginName = args[1];

if (!Plugin.Plugins.Any(u => u.Name == pluginName))
{
Console.WriteLine("Plugin not found");
return true;
}

if (Directory.Exists(Path.Combine("Plugins", pluginName)))
{
Directory.Delete(Path.Combine("Plugins", pluginName), true);
Expand Down