From e9d5b22a3ba88177a9047bba8c97d7851538813a Mon Sep 17 00:00:00 2001 From: Matvey Beloded Date: Wed, 7 Jan 2026 21:54:32 +0700 Subject: [PATCH] Renamed the variable in the test script since its name is built into PowerShell (#8793) --- utils/test zapret.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/utils/test zapret.ps1 b/utils/test zapret.ps1 index 3668773..6bad354 100644 --- a/utils/test zapret.ps1 +++ b/utils/test zapret.ps1 @@ -545,17 +545,17 @@ function Restore-WinwsSnapshot { if ($current -and $current -contains $p.CommandLine) { continue } $exe = $p.ExecutablePath - $args = "" + $processArgs = "" if ($p.CommandLine) { $quotedExe = '"' + $exe + '"' if ($p.CommandLine.StartsWith($quotedExe)) { - $args = $p.CommandLine.Substring($quotedExe.Length).Trim() + $processArgs = $p.CommandLine.Substring($quotedExe.Length).Trim() } elseif ($p.CommandLine.StartsWith($exe)) { - $args = $p.CommandLine.Substring($exe.Length).Trim() + $processArgs = $p.CommandLine.Substring($exe.Length).Trim() } } - Start-Process -FilePath $exe -ArgumentList $args -WorkingDirectory (Split-Path $exe -Parent) -WindowStyle Minimized | Out-Null + Start-Process -FilePath $exe -ArgumentList $processArgs -WorkingDirectory (Split-Path $exe -Parent) -WindowStyle Minimized | Out-Null } }