Files
runner-images/images/win/post-generation/MercurialPath.ps1
Dibir Magomedsaygitov 56633cec4a refactor and rename scripts
2020-09-30 20:13:40 +03:00

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"
}