Refresh Windows process PATH before duplicate check
ci / test (push) Canceled after 0s
ci / fuzz-smoke (push) Canceled after 0s
ci / macos-client (macos-aarch64, macos-14) (push) Canceled after 0s
ci / macos-client (macos-x86_64, macos-13) (push) Canceled after 0s
ci / windows-client (push) Canceled after 0s
ci / package-release (linux-x86_64, ubuntu-latest, , , ) (push) Canceled after 0s
ci / package-release (macos-aarch64, macos-14, , , ) (push) Canceled after 0s
ci / package-release (macos-x86_64, macos-13, , , ) (push) Canceled after 0s
ci / package-release (windows-aarch64, windows-latest, aarch64, windows, aarch64-pc-windows-msvc) (push) Canceled after 0s
ci / package-release (windows-x86_64, windows-latest, , , ) (push) Canceled after 0s
ci / remote-bench (push) Canceled after 0s
ci / publish-gitea-release (push) Canceled after 0s
ci / test (push) Canceled after 0s
ci / fuzz-smoke (push) Canceled after 0s
ci / macos-client (macos-aarch64, macos-14) (push) Canceled after 0s
ci / macos-client (macos-x86_64, macos-13) (push) Canceled after 0s
ci / windows-client (push) Canceled after 0s
ci / package-release (linux-x86_64, ubuntu-latest, , , ) (push) Canceled after 0s
ci / package-release (macos-aarch64, macos-14, , , ) (push) Canceled after 0s
ci / package-release (macos-x86_64, macos-13, , , ) (push) Canceled after 0s
ci / package-release (windows-aarch64, windows-latest, aarch64, windows, aarch64-pc-windows-msvc) (push) Canceled after 0s
ci / package-release (windows-x86_64, windows-latest, , , ) (push) Canceled after 0s
ci / remote-bench (push) Canceled after 0s
ci / publish-gitea-release (push) Canceled after 0s
This commit is contained in:
+3
-3
@@ -333,6 +333,9 @@ function Add-UserPath($PathToAdd) {
|
||||
$entries = @($userPath -split ';' | Where-Object { $_ })
|
||||
}
|
||||
$wanted = Normalize-PathForCompare $PathToAdd
|
||||
if (-not (";$env:Path;").Contains(";$PathToAdd;")) {
|
||||
$env:Path = "$PathToAdd;$env:Path"
|
||||
}
|
||||
foreach ($entry in $entries) {
|
||||
if ((Normalize-PathForCompare $entry) -ieq $wanted) {
|
||||
return
|
||||
@@ -344,9 +347,6 @@ function Add-UserPath($PathToAdd) {
|
||||
$PathToAdd
|
||||
}
|
||||
[Environment]::SetEnvironmentVariable("Path", $next, "User")
|
||||
if (-not (";$env:Path;").Contains(";$PathToAdd;")) {
|
||||
$env:Path = "$PathToAdd;$env:Path"
|
||||
}
|
||||
}
|
||||
|
||||
function Write-Utf8NoBom($Path, $Content) {
|
||||
|
||||
Reference in New Issue
Block a user