rename and remove scripts

This commit is contained in:
Dibir Magomedsaygitov
2020-10-01 10:48:50 +03:00
parent 56633cec4a
commit 91ee0cc268
3 changed files with 0 additions and 15 deletions

View File

@@ -0,0 +1,12 @@
$latestPath = [System.Environment]::GetEnvironmentVariable('PATH', [System.EnvironmentVariableTarget]::Machine)
$dotnetPath = "$env:USERPROFILE\.dotnet\tools"
if ($latestPath.Contains("C:\Users\VssAdministrator\.dotnet\tools"))
{
$latestPath = $latestPath.Replace("C:\Users\VssAdministrator\.dotnet\tools", "$dotnetPath")
}
if (-not $latestPath.Contains($dotnetPath))
{
$latestPath = "$dotnetPath;$latestPath"
}