Skip to content

Fix build.psm1 to not add tool path to $PATH twice #6834

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

Merged
merged 1 commit into from
May 8, 2018

Conversation

daxian-dbw
Copy link
Member

@daxian-dbw daxian-dbw commented May 7, 2018

PR Summary

It incorrectly uses $env:XXX -notcontains <path> to test if a string is in the environment variable.
-notcontains works on collections, not a single string. It should be changed to -not $env:XXX.Contains(<path>) instead.

PR Checklist

@daxian-dbw daxian-dbw merged commit 1de9fb5 into PowerShell:master May 8, 2018
@daxian-dbw daxian-dbw deleted the minor branch May 8, 2018 16:20
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