فینورا پرو - سامانه جامع حسابداری و صدور فاکتور

fix(a02): avoid reserved PowerShell automatic args variable during private lab child invocation

davoodmehraban89 committed Oct 30, 2026 at 22:18 UTC 75def43c82d5f6b1c0c72d6f6db85afefe6fc189
1 file changed +2 -2
scripts/a02-private-owner-local-lab.ps1
+2 -2
@@ -70,11 +70,11 @@ function Assert-StagedBackup([string]$value){
70 }
71 return $full
72 }
73 -function Invoke-JsonStep([string]$scriptName,[string[]]$args,[string]$expected){
73 +function Invoke-JsonStep([string]$scriptName,[string[]]$stepArgs,[string]$expected){
74 $file=Join-Path $PSScriptRoot $scriptName
75 Require ([IO.File]::Exists($file)) 'A02_REQUIRED_HELPER_MISSING'
76 # No raw error, SQL query or private source path is echoed by this wrapper.
77 - $output=@(& powershell.exe -NoProfile -NonInteractive -File $file @args 2>$null)
77 + $output=@(& powershell.exe -NoProfile -NonInteractive -File $file @stepArgs 2>$null)
78 Require ($LASTEXITCODE -eq 0 -and $output.Count -gt 0 -and $output.Count -le 5) 'A02_HELPER_FAILED'
79 $json=$output -join [Environment]::NewLine
80 Require ($json.Length -le 16384) 'A02_HELPER_OUTPUT_OVERSIZED'