mirror of
https://github.com/actions/runner-images.git
synced 2025-12-13 20:56:47 +00:00
fix environmnet path
This commit is contained in:
@@ -100,10 +100,10 @@ function RunPostInstallationSteps()
|
||||
{
|
||||
Add-MachinePathItem "C:\Program Files\dotnet"
|
||||
# Run script at startup for all users
|
||||
$cmdDotNetPath = @"
|
||||
$cmdDotNetPath = @'
|
||||
@echo off
|
||||
SETX PATH "%USERPROFILE%\.dotnet\tools;%PATH%"
|
||||
"@
|
||||
powershell -executionpolicy bypass -noprofile -command "[System.Environment]::SetEnvironmentVariable('PATH',"""$env:USERPROFILE\.dotnet\tools;$env:PATH""", 'USER')"
|
||||
'@
|
||||
|
||||
$cmdPath = "C:\Program Files\dotnet\userpath.bat"
|
||||
$cmdDotNetPath | Out-File -Encoding ascii -FilePath $cmdPath
|
||||
|
||||
Reference in New Issue
Block a user