Skip to content

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

Merged
Dongbo Wang (daxian-dbw) merged 1 commit into
PowerShell:masterfrom
daxian-dbw:minor
May 8, 2018
Merged

Fix build.psm1 to not add tool path to $PATH twice#6834
Dongbo Wang (daxian-dbw) merged 1 commit into
PowerShell:masterfrom
daxian-dbw:minor

Conversation

@daxian-dbw

@daxian-dbw Dongbo Wang (daxian-dbw) commented May 7, 2018

Copy link
Copy Markdown
Member

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
Dongbo Wang (daxian-dbw) merged commit 1de9fb5 into PowerShell:master May 8, 2018
@daxian-dbw
Dongbo Wang (daxian-dbw) deleted the minor branch May 8, 2018 16:20
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
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