From 5bf95cd61fb7cbd62f671f88e200725bee139940 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Sun, 13 Feb 2022 03:15:38 +0530 Subject: [PATCH] Fix Add-Env in win32.ps1 --- src/scripts/win32.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/src/scripts/win32.ps1 b/src/scripts/win32.ps1 index d7b4737d..cf2f31bc 100644 --- a/src/scripts/win32.ps1 +++ b/src/scripts/win32.ps1 @@ -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`"" } }