aboutsummaryrefslogtreecommitdiff
path: root/scripts/windows_input/Bootstrap.ps1
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/windows_input/Bootstrap.ps1')
-rw-r--r--scripts/windows_input/Bootstrap.ps18
1 files changed, 1 insertions, 7 deletions
diff --git a/scripts/windows_input/Bootstrap.ps1 b/scripts/windows_input/Bootstrap.ps1
index 4f6884fb..6008c64f 100644
--- a/scripts/windows_input/Bootstrap.ps1
+++ b/scripts/windows_input/Bootstrap.ps1
@@ -14,7 +14,7 @@ Add-Type -Path "$PSScriptRoot/Native.cs"
$before = [HerdrInputGauntlet.ConsoleProbe]::Geometry()
$child = $null
try {
- if ($plan.path -eq 'herdr') {
+ if ($plan.path -in @('herdr', 'herdr-remote')) {
$child = New-GauntletProcess $plan.exe @('--session', $plan.session) $plan
} else {
$child = New-GauntletProcess $plan.pwsh @('-NoProfile', '-File', "$PSScriptRoot/Probe.ps1", '-PlanPath', $PlanPath) $plan
@@ -39,12 +39,6 @@ try {
}
$child.Dispose()
}
- if ($plan.path -eq 'herdr') {
- foreach ($verb in @('stop', 'delete')) {
- try { $null = Invoke-GauntletProcess $plan.exe @('session', $verb, $plan.session) $plan }
- catch { $cleanup += $_.ToString() }
- }
- }
Write-GauntletJson (Join-Path $plan.work 'bootstrap-exit.json') @{
nonce = $plan.nonce; before = $before; after = [HerdrInputGauntlet.ConsoleProbe]::Geometry(); cleanup_errors = $cleanup
}