mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2026-01-07 02:27:28 +08:00
rename and remove scripts
This commit is contained in:
12
images/win/post-generation/Dotnet.ps1
Normal file
12
images/win/post-generation/Dotnet.ps1
Normal 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"
|
||||
}
|
||||
Reference in New Issue
Block a user