2026-06-14 15:18:08 +01:00
|
|
|
param(
|
|
|
|
|
[string] $SshTarget = "nightwing"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
$ErrorActionPreference = "Stop"
|
|
|
|
|
|
|
|
|
|
$scriptPath = Join-Path $PSScriptRoot "nightwing-move-state-sources.sh"
|
2026-06-16 00:45:48 +01:00
|
|
|
$sshExe = Join-Path $env:SystemRoot "System32\OpenSSH\ssh.exe"
|
|
|
|
|
$command = '"' + $sshExe + '" -o BatchMode=yes -o ConnectTimeout=5 ' +
|
2026-06-14 15:18:08 +01:00
|
|
|
$SshTarget +
|
|
|
|
|
' "sh -s" < "' +
|
|
|
|
|
$scriptPath +
|
|
|
|
|
'"'
|
|
|
|
|
& cmd.exe /d /c $command
|
|
|
|
|
exit $LASTEXITCODE
|