mirror of
https://github.com/actions/runner-images.git
synced 2026-01-06 18:19:54 +08:00
9 lines
276 B
PowerShell
9 lines
276 B
PowerShell
$hgPath = "$Env:ProgramFiles\Mercurial\"
|
|
$latestPath = [System.Environment]::GetEnvironmentVariable('PATH', [System.EnvironmentVariableTarget]::Machine)
|
|
|
|
if (Test-Path -Path $hgPath)
|
|
{
|
|
$latestPath = "$hgPath;$latestPath"
|
|
Write-Host "Added Mercurial to PATH"
|
|
}
|