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

compare getcontent to new value #412

Merged
merged 2 commits into from
Oct 26, 2018
Merged

Conversation

iricigor
Copy link
Contributor

This is about #393

Content check is done before testing for -Force switch. This means these all three commands work fine, while only the first one updates file.

New-MarkdownHelp -Command Get-Date -OutputFolder MyFolder
New-MarkdownHelp -Command Get-Date -OutputFolder MyFolder -Verbose # file exists, no changes
New-MarkdownHelp -Command Get-Date -OutputFolder MyFolder -Verbose -Force

Second option is to move this check after -Force check (6 lines below), which would cause 2nd command to fail, but 3rd one would still work as expected.

@vors vors merged commit 8f14242 into PowerShell:master Oct 26, 2018
@vors
Copy link
Collaborator

vors commented Oct 26, 2018

That's great, good job!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants