From 7ebc88cdb09dceb51baf06a267a8fdbd114ac334 Mon Sep 17 00:00:00 2001 From: Shargon Date: Wed, 29 May 2019 13:42:09 +0200 Subject: [PATCH] Fix uninstall --- neo-cli/Shell/MainService.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/neo-cli/Shell/MainService.cs b/neo-cli/Shell/MainService.cs index 5ba60f1ba..5ad9287e7 100644 --- a/neo-cli/Shell/MainService.cs +++ b/neo-cli/Shell/MainService.cs @@ -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);