Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Commit

Permalink
clean up release notes variable names.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyCarl committed Jul 16, 2013
1 parent 0472d1e commit 8c1fc54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions default.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ task Test -depends Compile {
task SetReleaseNotes -depends Test {
$releaseNotes = $Env:ReleaseNotes

if(![string]::IsNullOrEmpty($releaseNotes))
if(![string]::IsNullOrEmpty($Env:ReleaseNotes))
{
Write-Host "Setting release notes to:"
Write-Host "$releaseNotes"
Write-Host "$Env:ReleaseNotes"

$nuspecContents = [Xml](Get-Content "$nuspecFile")
$releaseNotes = $nuspecContents.package.metadata.SelectSingleNode("releaseNotes")
Expand All @@ -82,7 +82,7 @@ task SetReleaseNotes -depends Test {
$nuspecContents.package.metadata.AppendChild($releaseNotes)
}

$ignore = $releaseNotes.InnerText = $releaseNotes
$ignore = $releaseNotes.InnerText = $Env:ReleaseNotes
$nuspecContents.Save("$nuspecFile")
}
else
Expand Down

0 comments on commit 8c1fc54

Please sign in to comment.