File tree Expand file tree Collapse file tree
extension/BuildPhpExtension/private Expand file tree Collapse file tree Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments