make the win_chocolatey force arg actually work

fixes #1561
This commit is contained in:
nitzmahone 2016-08-17 16:38:36 -07:00 committed by Matt Clay
parent a2f9e0d2fe
commit 2c87fe3b58

View file

@ -214,11 +214,16 @@ Function Choco-Install
Choco-Upgrade -package $package -version $version -source $source -force $force `
-installargs $installargs -packageparams $packageparams `
-ignoredependencies $ignoredependencies
}
return
}
if (-not $force)
{
return
}
}
$cmd = "$executable install -dv -y $package"
if ($version)