From 1ef0af0bd60bfd747591a18832a338325ad5646c Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Thu, 28 Jul 2016 08:18:38 +0100 Subject: [PATCH] Fix docs deployment's new trailing line Also add the source repo and commit to the commit message. --- scripts/appveyor/deploy_docs.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/appveyor/deploy_docs.ps1 b/scripts/appveyor/deploy_docs.ps1 index 3aaa8df4..8346cf3e 100644 --- a/scripts/appveyor/deploy_docs.ps1 +++ b/scripts/appveyor/deploy_docs.ps1 @@ -17,7 +17,7 @@ $docsFiles = @( 'LOOT Readme.html' ) -$commitMessage = 'Add v' + $env:APPVEYOR_REPO_TAG_NAME + ' release docs' +$commitMessage = 'Add v' + $env:APPVEYOR_REPO_TAG_NAME + " release docs`n`n From " + $env:APPVEYOR_REPO_NAME + '#' + $env:APPVEYOR_REPO_COMMIT if ($env:APPVEYOR_REPO_TAG -eq 'true') { cd 'C:\projects' @@ -25,7 +25,7 @@ if ($env:APPVEYOR_REPO_TAG -eq 'true') { # Edit the docs index to list and select by default the new release docs. | %{$_ -replace $searchSelect, $replaceSelect} cd $docsRepoPath - $newDocsIndex = cat -Raw $docsIndex | %{$_ -replace $searchOption, $replaceOption} | %{$_ -replace $searchSelect, $replaceSelect} + $newDocsIndex = (cat $docsIndex) | %{$_ -replace $searchOption, $replaceOption} | %{$_ -replace $searchSelect, $replaceSelect} | %{$_ -replace "`n$", ''} [IO.File]::WriteAllLines($docsRepoPath + '\' + $docsIndex, $newDocsIndex) # Add the docs to their subfolder.