Skip to content

Commit

Permalink
Fix Add-Path for self-hosted Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
dino182 committed Jun 23, 2022
1 parent 4969814 commit 1a2cb4f
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 1a2cb4f

Please sign in to comment.