Skip to content

Commit 6848abe

Browse files
committed
Fix Add-Path.ps1
1 parent 3338004 commit 6848abe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extension/BuildPhpExtension/private/Add-Path.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Function Add-Path {
1818
$currentUserPath = [System.Environment]::GetEnvironmentVariable("PATH", [System.EnvironmentVariableTarget]::User)
1919
$machinePath = [System.Environment]::GetEnvironmentVariable("PATH", [System.EnvironmentVariableTarget]::Machine)
2020
$currentPath = $currentUserPath + ";" + $machinePath
21-
if (-not($currentPath.Split(';').Contains(($PathItem + ";")))) {
21+
if (-not($currentPath.Split(';').Contains($PathItem))) {
2222
$newUserPath = $PathItem + ";" + $currentUserPath
2323
[System.Environment]::SetEnvironmentVariable("PATH", $newUserPath, [System.EnvironmentVariableTarget]::User)
2424
$machinePath = [System.Environment]::GetEnvironmentVariable("PATH", [System.EnvironmentVariableTarget]::Machine)

0 commit comments

Comments
 (0)