We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 226aa6a + 6d6c1fa commit 1d46f95Copy full SHA for 1d46f95
tools/add-path.ps1
@@ -6,7 +6,7 @@
6
7
$pathSeparator = [System.IO.Path]::PathSeparator
8
$paths = $env:PATH.Split($pathSeparator)
9
-if (-not $paths -contains $PWD) {
10
- $env:PATH = $PWD + $pathSeparator + $env:PATH
11
- Write-Host -ForegroundColor Green "Added $PWD to PATH"
+if ($paths -notcontains $PWD) {
+ $env:PATH = "$PWD" + $pathSeparator + $env:PATH
+ Write-Host -ForegroundColor Green "Added $PWD to `$env:PATH"
12
}
0 commit comments