Skip to content

Commit

Permalink
(GH-996) beforemodify check before run
Browse files Browse the repository at this point in the history
Before running the before modify script, the provider should ensure
that the user has not configured to skip the package install provider
scripts.
  • Loading branch information
ferventcoder committed Oct 3, 2016
1 parent 19ea1a4 commit 0db79c6
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,10 @@ public ConcurrentDictionary<string, PackageResult> upgrade_run(ChocolateyConfigu

private void before_package_modify(PackageResult packageResult, ChocolateyConfiguration config)
{
_powershellService.before_modify(config, packageResult);
if (!config.SkipPackageInstallProvider)
{
_powershellService.before_modify(config, packageResult);
}
}

public void uninstall_noop(ChocolateyConfiguration config)
Expand Down

0 comments on commit 0db79c6

Please sign in to comment.