Fix win_chocolatey version comparison

fixes #2995
This commit is contained in:
nitzmahone 2016-09-22 20:06:45 -07:00
parent e672b3141f
commit 1ade801f65

View file

@ -74,7 +74,7 @@ Function Chocolatey-Install-Upgrade
{
$script:executable = "choco.exe"
if ((choco --version) -lt '0.9.9')
if ([Version](choco --version) -lt [Version]'0.9.9')
{
Choco-Upgrade chocolatey
}