Skip to content

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