Skip to content

Commit 350d982

Browse files
committed
Fix selecting cells on PowerShell 5.1
1 parent fb8d426 commit 350d982

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Install-Software.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ function Select-Cells {
808808
[Parameter(mandatory=$true)][string[]]$Names
809809
)
810810
foreach ($Name in $Names) {
811-
$Index = $Dict.Keys.IndexOf($Name)
811+
$Index = @($Dict.Keys).IndexOf($Name)
812812
$View.rows[$Index].Cells[0].Value = $true
813813
}
814814
}

0 commit comments

Comments
 (0)