Skip to content

Commit

Permalink
(GH-215) The term 'false' is not recognized
Browse files Browse the repository at this point in the history
A regression introduced in
abe92f3
which is just in 0.9.9.3 that was attempting to solve other issues
caused choco to stop working completely in some versions of PowerShell,
which have stricter requirements for setting booleans.

Without this fix, chocolatey will continue to be unusable
  • Loading branch information
ferventcoder committed Mar 30, 2015
1 parent 2a86103 commit 45ca627
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/chocolatey.resources/helpers/chocolateyInstaller.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ if ($env:ChocolateyEnvironmentVerbose -eq 'true') { $VerbosePreference = "Contin

$installArguments = $env:chocolateyInstallArguments

$overrideArgs = false
if ($env:chocolateyInstallOverride -eq 'true') { $overrideArgs = true }
$overrideArgs = $false
if ($env:chocolateyInstallOverride -eq 'true') { $overrideArgs = $true }

$forceX86 = false
if ($env:chocolateyForceX86 -eq 'true') { $forceX86 = true }
$forceX86 = $false
if ($env:chocolateyForceX86 -eq 'true') { $forceX86 = $true }

$packageParameters = $env:chocolateyPackageParameters

Expand Down

0 comments on commit 45ca627

Please sign in to comment.