Skip to content

Commit 1a57bd5

Browse files
author
Robin Stolpe
committed
fixed bug
1 parent b18cf14 commit 1a57bd5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.src/Public/Function/Uninstall-RSModule.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
else {
5151
Write-Verbose "User has added modules to the Module parameter, splitting them"
5252
$OldModule = $Module.Split(",").Trim()
53-
$Module = [System.Collections.Generic.List[string]]::new()
53+
[System.Collections.ArrayList]$Module = @()
5454

5555
Write-Verbose "Looking so the modules exists in the system..."
5656
foreach ($m in $OldModule) {

.src/Public/Function/Update-RSModule.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
else {
8888
Write-Verbose "User has added modules to the Module parameter, splitting them"
8989
$OldModule = $Module.Split(",").Trim()
90-
$Module = [System.Collections.Generic.List[string]]::new()
90+
[System.Collections.ArrayList]$Module = @()
9191

9292
if ($InstallMissing -eq $false) {
9393
Write-Verbose "Looking so the modules exists in the system..."

0 commit comments

Comments
 (0)