Skip to content

Commit

Permalink
Fix custom PowerShell environments crashing ScoopFactory
Browse files Browse the repository at this point in the history
Fixes #498
  • Loading branch information
Klocman committed Jul 3, 2023
1 parent 7bfa056 commit 32ca90f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/UninstallTools/Factory/ScoopFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ private static string RunScoopCommand(string scoopArgs)

private static ProcessStartCommand MakeScoopCommand(string scoopArgs)
{
return new ProcessStartCommand(_powershellPath, $"-ex unrestricted \"{_scriptPath}\" {scoopArgs}");
return new ProcessStartCommand(_powershellPath, $"-NoProfile -ex unrestricted \"{_scriptPath}\" {scoopArgs}");
}


Expand Down

0 comments on commit 32ca90f

Please sign in to comment.