trim trailing newline

This commit is contained in:
Kevin Marquette
2018-08-20 02:45:38 -07:00
parent 816462927d
commit 94471ccfc0

View File

@@ -108,6 +108,10 @@ task SetVersion {
" Setting version [$version]" " Setting version [$version]"
Update-Metadata -Path $ManifestPath -PropertyName 'ModuleVersion' -Value $version Update-Metadata -Path $ManifestPath -PropertyName 'ModuleVersion' -Value $version
(Get-Content -Path $ManifestPath -Raw -Encoding UTF8) |
% trimend |
Set-Content -Path $ManifestPath -Encoding UTF8
Set-Content -Path $versionFile -Value $versionStamp -NoNewline -Encoding UTF8 Set-Content -Path $versionFile -Value $versionStamp -NoNewline -Encoding UTF8
if(Test-Path $BuildRoot\fingerprint) if(Test-Path $BuildRoot\fingerprint)