Skip to content

Commit

Permalink
Merge pull request #609 from dino182/develop
Browse files Browse the repository at this point in the history
Fix Add-Path for self-hosted Windows
  • Loading branch information
shivammathur authored Jun 27, 2022
2 parents 4969814 + 1a2cb4f commit 3fda17f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/scripts/win32.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ Function Add-Path {
}
if ($env:GITHUB_PATH) {
Add-Content $PathItem -Path $env:GITHUB_PATH -Encoding utf8
$env:PATH += "$PathItem;"
} else {
$newPath = (Get-ItemProperty -Path 'hkcu:\Environment' -Name PATH).Path.replace("$PathItem;", '')
$newPath = $PathItem + ';' + $newPath
Expand Down

0 comments on commit 3fda17f

Please sign in to comment.