diff --git a/src/main/cli/cli-privileged-processes.ts b/src/main/cli/cli-privileged-processes.ts index 7c0823f847b..9167f1f8e55 100644 --- a/src/main/cli/cli-privileged-processes.ts +++ b/src/main/cli/cli-privileged-processes.ts @@ -26,7 +26,8 @@ export async function writeWindowsUserPath(value: string): Promise { ]) } -export async function runWindowsPathCommand(args: string[]): Promise { +// Private on purpose: its timeout retry is only safe for the idempotent PATH write above. +async function runWindowsPathCommand(args: string[]): Promise { const run = () => runProcess({ program: 'powershell', args, timeoutMs: WINDOWS_PATH_WRITE_TIMEOUT_MS }) let result = await run()