mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-22 20:01:06 +07:00
Fix Add-Env in win32.ps1
This commit is contained in:
parent
18f3abac75
commit
5bf95cd61f
@ -106,6 +106,7 @@ Function Add-Env {
|
|||||||
Add-Content "$EnvName=$EnvValue" -Path $env:GITHUB_ENV -Encoding utf8
|
Add-Content "$EnvName=$EnvValue" -Path $env:GITHUB_ENV -Encoding utf8
|
||||||
} else {
|
} else {
|
||||||
Set-ItemProperty -Path 'hkcu:\Environment' -Name $EnvName -Value $EnvValue
|
Set-ItemProperty -Path 'hkcu:\Environment' -Name $EnvName -Value $EnvValue
|
||||||
|
Add-ToProfile $current_profile $EnvName "`$env:$EnvName=`"$EnvValue`""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user