diff --git a/build/preparerelease.ps1 b/build/preparerelease.ps1 index 7b1aafd..86272fa 100644 --- a/build/preparerelease.ps1 +++ b/build/preparerelease.ps1 @@ -75,6 +75,10 @@ if ([string]::IsNullOrEmpty($rawreleasedate)) { } $releasedate = $rawreleasedate -replace '\*','' +if($releasedate -eq $newreleasedate) { + Write-Error ("ERROR: Release "+$releasedate+" already exists!") -ErrorAction Stop +} + if ($TargetBranch -ne 'none') { if ([string]::IsNullOrEmpty($TargetBranch)) { $TargetBranch = $newreleasetag + "release"