Skip to content

Commit

Permalink
(chocolateyGH-7) Check debug env var for 'true'
Browse files Browse the repository at this point in the history
The environment variable may exist, better to check for the explicit
value of true.
  • Loading branch information
ferventcoder committed Feb 12, 2015
1 parent 2fc9e11 commit 27deb5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nuget/chocolatey/tools/chocolateysetup.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function Initialize-Chocolatey {
param(
[Parameter(Mandatory=$false)][string]$chocolateyPath = ''
)
if ($env:ChocolateyEnvironmentDebug -ne $null) {
if ($env:ChocolateyEnvironmentDebug -eq 'true') {
$debugMode = $true
}

Expand Down

0 comments on commit 27deb5b

Please sign in to comment.