mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
Renames uninstaller arg Component to Name
This commit is contained in:
parent
7d3ac7ef08
commit
433511597e
2 changed files with 4 additions and 4 deletions
|
|
@ -55,7 +55,7 @@ function Uninstall-IcingaForWindows()
|
|||
foreach ($module in $ModuleList.Name) {
|
||||
[string]$ModuleName = $module.Replace('icinga-powershell-', '');
|
||||
|
||||
if ((Uninstall-IcingaFrameworkComponent -Component $ModuleName)) {
|
||||
if ((Uninstall-IcingaFrameworkComponent -Name $ModuleName)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
.FUNCTIONALITY
|
||||
Uninstalls a specific module within the icinga-powershell-* namespace
|
||||
inside your PowerShell module folder
|
||||
.PARAMETER Component
|
||||
.PARAMETER Name
|
||||
The component you want to uninstall, like 'plugins' or 'mssql'
|
||||
.INPUTS
|
||||
System.String
|
||||
|
|
@ -21,11 +21,11 @@
|
|||
function Uninstall-IcingaFrameworkComponent()
|
||||
{
|
||||
param (
|
||||
[string]$Component
|
||||
[string]$Name = ''
|
||||
);
|
||||
|
||||
$ModuleBase = Get-IcingaFrameworkRootPath;
|
||||
$UninstallComponent = [string]::Format('icinga-powershell-{0}', $Component);
|
||||
$UninstallComponent = [string]::Format('icinga-powershell-{0}', $Name);
|
||||
$UninstallPath = Join-Path -Path $ModuleBase -ChildPath $UninstallComponent;
|
||||
|
||||
if ((Test-Path $UninstallPath) -eq $FALSE) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue