Skip to content

Commit

Permalink
fix: Restore original defaults for Powershell environment
Browse files Browse the repository at this point in the history
(cherry picked from commit 38931d2)
  • Loading branch information
jeromelaban authored and mergify[bot] committed Jul 25, 2023
1 parent 1ef7764 commit d6eb1eb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Uno.Wasm.Bootstrap/ShellTask.cs
Expand Up @@ -1293,7 +1293,13 @@ private string ValidateEmscripten()

private (int exitCode, string output, string error) ValidatPowershellExecutionPolicy()
{
var result = RunProcess("powershell", "Get-ExecutionPolicy");
var result = RunProcess(
"powershell",
"Get-ExecutionPolicy",
environmentVariables: new[] {
// Workaround for https://github.com/PowerShell/PowerShell/issues/18530#issuecomment-1325691850
("PSModulePath", "")
});

if (result.exitCode != 0)
{
Expand Down

0 comments on commit d6eb1eb

Please sign in to comment.