Fix Add-Env in win32.ps1

This commit is contained in:
Shivam Mathur 2022-02-13 03:15:38 +05:30
parent 18f3abac75
commit 5bf95cd61f
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -106,6 +106,7 @@ Function Add-Env {
Add-Content "$EnvName=$EnvValue" -Path $env:GITHUB_ENV -Encoding utf8
} else {
Set-ItemProperty -Path 'hkcu:\Environment' -Name $EnvName -Value $EnvValue
Add-ToProfile $current_profile $EnvName "`$env:$EnvName=`"$EnvValue`""
}
}