Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed -NoNewLine parameter from Set-Content #16

Merged
merged 2 commits into from
May 1, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Removed -NoNewLine parameter from Set-Content
`Set-Content` only supports the `-NoNewLine` parameter starting with Windows Powershell 5
closes #15
  • Loading branch information
lipkau committed Jan 31, 2018
commit 2ed0e33ba8a436c04297da2105f995e7b23ee219
2 changes: 1 addition & 1 deletion Source/Metadata.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ function Update-Metadata {
).Insert($Extent.StartOffset, $Value)

if(Test-Path $Path) {
Set-Content -Encoding UTF8 -Path $Path -Value $ManifestContent -NoNewline
Set-Content -Encoding UTF8 -Path $Path -Value $ManifestContent
} else {
$ManifestContent
}
Expand Down