Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Merged
daxian-dbw merged 1 commit intoPowerShell:masterfrom
daxian-dbw:minor
May 8, 2018
Merged

Fix build.psm1 to not add tool path to $PATH twice#6834
daxian-dbw merged 1 commit intoPowerShell:masterfrom
daxian-dbw:minor

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