Prevent ArrayList.Add from printing index when merging props

This commit is contained in:
Steve Streeting 2020-04-22 09:54:15 +01:00
parent 175282bf69
commit 5cd726db73

View File

@ -127,19 +127,19 @@ function Set-Svn-Props {
if ($match -eq $oldmatch) { if ($match -eq $oldmatch) {
# use new value # use new value
$finallist.Add($newitem) $finallist.Add($newitem) > $null # ArrayList.Add returns index & prints it
++$oldidx ++$oldidx
$insertednewitem = $true $insertednewitem = $true
} elseif ($match -gt $oldmatch) { } elseif ($match -gt $oldmatch) {
$finallist.Add($olditem) $finallist.Add($olditem) > $null
++$oldidx ++$oldidx
} else { } else {
$finallist.Add($newitem) $finallist.Add($newitem) > $null
$insertednewitem = $true $insertednewitem = $true
} }
} else { } else {
# run out of old items, just append new # run out of old items, just append new
$finallist.Add($newitem) $finallist.Add($newitem) > $null
$insertednewitem = $true $insertednewitem = $true
} }
} }