공개 런타임 프로브 복구 수정
This commit is contained in:
parent
527027b93d
commit
a73bcd248f
3 changed files with 92 additions and 4 deletions
|
|
@ -240,8 +240,15 @@ function Test-VoiceSidecarStack {
|
|||
"--tts-language", "KR",
|
||||
"--timeout-seconds", "5"
|
||||
)
|
||||
& $Python @probeArgs 1>$null 2>$null
|
||||
return $LASTEXITCODE -eq 0
|
||||
$previousErrorActionPreference = $ErrorActionPreference
|
||||
try {
|
||||
$ErrorActionPreference = "Continue"
|
||||
& $Python @probeArgs 1>$null 2>$null
|
||||
$probeExit = $LASTEXITCODE
|
||||
} finally {
|
||||
$ErrorActionPreference = $previousErrorActionPreference
|
||||
}
|
||||
return $probeExit -eq 0
|
||||
}
|
||||
|
||||
Write-BootLog "================ boot start ================"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue