Fix win_chocolatey version comparison

fixes #2995
This commit is contained in:
nitzmahone 2016-09-22 20:06:45 -07:00 committed by Matt Clay
parent b2b3d99839
commit 4ff086c1a8

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
}