1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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 ` Choco-Upgrade -package $package -version $version -source $source -force $force `
-installargs $installargs -packageparams $packageparams ` -installargs $installargs -packageparams $packageparams `
-ignoredependencies $ignoredependencies -ignoredependencies $ignoredependencies
}
return return
} }
if (-not $force)
{
return
}
}
$cmd = "$executable install -dv -y $package" $cmd = "$executable install -dv -y $package"
if ($version) if ($version)