Skip to content

Commit

Permalink
(GH-810) Install of choco sets exit code
Browse files Browse the repository at this point in the history
If the exit code environment variable is not set, set it so choco can
be upgraded successfully.
  • Loading branch information
ferventcoder committed Jun 18, 2016
1 parent c3b427c commit 8bfd1d1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nuget/chocolatey/tools/chocolateysetup.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ Creating Chocolatey folders if they do not already exist.

Add-ChocolateyProfile
Install-DotNet4IfMissing
if ($env:ChocolateyExitCode -eq $null -or $env:ChocolateyExitCode -eq '') {
$env:ChocolateyExitCode = 0
}

@"
Chocolatey (choco.exe) is now ready.
Expand Down

0 comments on commit 8bfd1d1

Please sign in to comment.