From fe363814a1f4badaec879728e416e8f298d663f4 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sun, 12 Nov 2023 05:54:38 +0000 Subject: [PATCH] fix(windows): preserve parent installer's ENVs by reverting in-process call operator to new-process powershell --- webi/webi-pwsh.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webi/webi-pwsh.ps1 b/webi/webi-pwsh.ps1 index 3fa00b7..a223d28 100644 --- a/webi/webi-pwsh.ps1 +++ b/webi/webi-pwsh.ps1 @@ -168,6 +168,6 @@ $UrlParams = "formats=zip,exe,tar,git&libc=msvc" $PkgInstallPwsh = "$HOME\.local\tmp\$exename.install.ps1" Invoke-DownloadUrl -Force -URL $PKG_URL -Params $UrlParams -Path $PkgInstallPwsh -& "$HOME\.local\tmp\${exename}.install.ps1" +powershell $HOME\.local\tmp\${exename}.install.ps1 Pop-Location