Skip to content

Commit

Permalink
MicroBuild v2: Fix string formatting in change.txt.
Browse files Browse the repository at this point in the history
  • Loading branch information
dilijev committed Jun 13, 2016
1 parent 2475f39 commit 3bd78fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Build/scripts/pre_build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ if (Test-Path Env:\TF_BUILD_SOURCEGETVERSION)
# commit message
$command = "$gitExe log -1 --name-status -p $commitHash"
$CommitMessage = iex $command
$CommitMessageLines = $CommitMessage -join "`n"

$changeTextFile = Join-Path -Path $outputDir -ChildPath "change.txt"

Expand All @@ -117,7 +118,7 @@ TF_BUILD_BUILDURI = $Env:TF_BUILD_BUILDURI
PushId = $buildPushId $buildPushIdString
PushDate = $buildDate
$CommitMessage
$CommitMessageLines
"@

Write-Output "-----"
Expand Down

0 comments on commit 3bd78fe

Please # to comment.