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

Commit

Permalink
Fix uninstall (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
shargon committed May 29, 2019
1 parent 2898bf9 commit 443fb9f
Showing 1 changed file with 7 additions and 0 deletions.
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

0 comments on commit 443fb9f

Please sign in to comment.