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

Commit

Permalink
Update MainService.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
erikzhang committed Dec 1, 2019
1 parent 5f8f27b commit dc69d96
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions neo-cli/Shell/MainService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1257,14 +1257,14 @@ private bool OnUnInstallCommand(string[] args)
return true;
}

string path = plugin.GetType().Assembly.Location;
File.Delete(path);
path = Path.ChangeExtension(path, null);
string path = Path.GetDirectoryName(plugin.ConfigFile);
if (Directory.Exists(path))
{
Directory.Delete(path, true);
}

path = Path.ChangeExtension(path, "dll");
File.Delete(path);
Console.WriteLine($"Uninstall successful, please restart neo-cli.");
return true;
}
Expand Down

0 comments on commit dc69d96

Please sign in to comment.