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

Allow parameters to be passed for uninstall (required by some packages) (#2269)

This commit is contained in:
Tim Small 2016-06-20 22:30:10 +01:00 committed by Matt Clay
parent c56da672d1
commit efb29d6436

View file

@ -288,6 +288,11 @@ Function Choco-Uninstall
$cmd += " -force" $cmd += " -force"
} }
if ($packageparams)
{
$cmd += " -params '$packageparams'"
}
$results = invoke-expression $cmd $results = invoke-expression $cmd
if ($LastExitCode -notin $successexitcodes) if ($LastExitCode -notin $successexitcodes)