Skip to content

Commit 6ca6b32

Browse files
authored
Don't load the PowerShell Profile for the AsyncRecycler task
1 parent fba606f commit 6ca6b32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/rush-lib/src/utilities/AsyncRecycler.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export class AsyncRecycler {
150150
args = [
151151
'/c',
152152
'"' +
153-
'PowerShell.exe -Version 3.0 -NoLogo -NonInteractive -WindowStyle Hidden -Command' +
153+
'PowerShell.exe -Version 3.0 -NoLogo -NonInteractive -NoProfile -WindowStyle Hidden -Command' +
154154
` Get-ChildItem -Force '${escapedRecyclerFolder}'` +
155155
// The "^|" here prevents cmd.exe from interpreting the "|" symbol
156156
` ^| ForEach ($_) { Remove-Item -ErrorAction Ignore -Force -Recurse "\\\\?\\$($_.FullName)" }` +

0 commit comments

Comments
 (0)