feat: add remote audiobook generation
This commit is contained in:
@@ -328,7 +328,7 @@ if ($RestartArgus) {
|
||||
$remoteScript = $remoteScriptLines -join "`n"
|
||||
$tempRemoteScript = New-TemporaryFile
|
||||
try {
|
||||
Set-Content -LiteralPath $tempRemoteScript -Value $remoteScript -Encoding utf8
|
||||
Set-Content -LiteralPath $tempRemoteScript -Value $remoteScript -Encoding utf8 -NoNewline
|
||||
Get-Content -LiteralPath $tempRemoteScript -Raw | & ssh $remoteTarget "bash" "-s"
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "ssh exited with code $LASTEXITCODE."
|
||||
|
||||
Reference in New Issue
Block a user