Skip to content

Commit

Permalink
If running reinstall & simplify install before
Browse files Browse the repository at this point in the history
  • Loading branch information
BlythMeister committed Feb 28, 2020
1 parent b0dbb02 commit 84da953
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/PaketChain/Runner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,13 @@ private static int Run(RunnerArgs runnerArgs, CancellationToken cancellationToke

if (runnerArgs.Simplify)
{
if (runnerArgs.Reinstall)
{
ConsoleHelper.RunPaketCommand(rootDir, paketPath, toolType, "install", runnerArgs.InstallArgs, cancellationToken);
Console.WriteLine("-----------------------------------------------------");
if (cancellationToken.IsCancellationRequested) return -2;
}

ConsoleHelper.RunPaketCommand(rootDir, paketPath, toolType, "simplify", runnerArgs.SimplifyArgs, cancellationToken);
Console.WriteLine("-----------------------------------------------------");
if (cancellationToken.IsCancellationRequested) return -2;
Expand Down

0 comments on commit 84da953

Please sign in to comment.