mirror of
https://github.com/sinbad/UEScripts.git
synced 2025-02-23 21:15:24 +00:00
Ignore missing properties on completely blank repos
This commit is contained in:
parent
8692a1acfa
commit
1f5ee43bfc
@ -126,7 +126,10 @@ function Set-Svn-Props {
|
||||
if (-not $overwriteprops) {
|
||||
# We need to merge our props with whatever is already present
|
||||
# Can't believe SVN doesn't have a command for this (facepalm)
|
||||
$oldvalues = $(svn propget $propname $path)
|
||||
# We need to continue on error if property doesn't exist
|
||||
$ErrorActionPreference = "SilentlyContinue"
|
||||
$oldvalues = (svn propget $propname $path 2>$null)
|
||||
$ErrorActionPreference = "Stop"
|
||||
$oldarray = $oldvalues -split "\r?\n"
|
||||
$newarray = $values -split "\r?\n"
|
||||
# remove duplicates & Empties and sort both arrays so we can insert
|
||||
|
Loading…
x
Reference in New Issue
Block a user