mirror of
https://github.com/sinbad/UEScripts.git
synced 2025-02-23 21:15:24 +00:00
Prevent ArrayList.Add from printing index when merging props
This commit is contained in:
parent
175282bf69
commit
5cd726db73
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user