From 27deb5b39bf282614676161b10248fd3a2432368 Mon Sep 17 00:00:00 2001 From: Rob Reynolds Date: Thu, 12 Feb 2015 06:04:43 -0600 Subject: [PATCH] (GH-7) Check debug env var for 'true' The environment variable may exist, better to check for the explicit value of true. --- nuget/chocolatey/tools/chocolateysetup.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nuget/chocolatey/tools/chocolateysetup.psm1 b/nuget/chocolatey/tools/chocolateysetup.psm1 index cdeece8cda..2a4fecd757 100644 --- a/nuget/chocolatey/tools/chocolateysetup.psm1 +++ b/nuget/chocolatey/tools/chocolateysetup.psm1 @@ -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 }