LDX-1015 fix psd1 trailing whitespace

This commit is contained in:
Travis Drake
2018-11-12 13:17:19 -08:00
parent 5bdaa3446e
commit b38aca3e80

View File

@@ -1,3 +1,6 @@
task UpdateSource { task UpdateSource {
Copy-Item -Path $ManifestPath -Destination "$Source\$ModuleName.psd1" Copy-Item -Path $ManifestPath -Destination "$Source\$ModuleName.psd1"
$content = Get-Content -Path "$Source\$ModuleName.psd1" -Raw -Encoding UTF8
$content.Trim() | Set-Content -Path "$Source\$ModuleName.psd1" -Encoding UTF8
} }