mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-06 10:43:14 +00:00
Allow parameters to be passed for uninstall (required by some packages) (#2269)
This commit is contained in:
@@ -288,6 +288,11 @@ Function Choco-Uninstall
|
||||
$cmd += " -force"
|
||||
}
|
||||
|
||||
if ($packageparams)
|
||||
{
|
||||
$cmd += " -params '$packageparams'"
|
||||
}
|
||||
|
||||
$results = invoke-expression $cmd
|
||||
|
||||
if ($LastExitCode -notin $successexitcodes)
|
||||
|
||||
Reference in New Issue
Block a user