Prepare scanner branch for merge
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
param(
|
||||
[string]$ProjectRoot = (Resolve-Path -LiteralPath (Join-Path $PSScriptRoot "..")).Path
|
||||
[string]$ProjectRoot = (Resolve-Path -LiteralPath (Join-Path $PSScriptRoot "..")).Path,
|
||||
[string]$OcrWorkers = $env:GAA_OCR_WORKERS
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
@@ -19,6 +20,9 @@ try {
|
||||
"-File $(Quote-ProcessArgument $script)",
|
||||
"-ProjectRoot $(Quote-ProcessArgument $project)"
|
||||
) -join " "
|
||||
if ($OcrWorkers) {
|
||||
$arguments += " -OcrWorkers $(Quote-ProcessArgument $OcrWorkers)"
|
||||
}
|
||||
|
||||
Start-Process -FilePath $powershellExe -ArgumentList $arguments -WorkingDirectory $project -Verb RunAs -WindowStyle Normal -ErrorAction Stop
|
||||
|
||||
|
||||
Reference in New Issue
Block a user