fix: use fs backend for host apply-patch
This commit is contained in:
@@ -7,6 +7,7 @@ import { type UniDeskConfig } from "./config";
|
||||
import { type RemoteCliOptions } from "./remote-options";
|
||||
import {
|
||||
buildWindowsPowerShellInvocation,
|
||||
createPosixApplyPatchFileSystem,
|
||||
createWindowsApplyPatchFileSystem,
|
||||
createSshStdoutForwarder,
|
||||
formatSshFailureHint,
|
||||
@@ -904,7 +905,9 @@ async function runRemoteSshOverFrontend(session: FrontendSession, target: string
|
||||
if ((normalizedArgs[0] ?? "") === "apply-patch") {
|
||||
const executor: ApplyPatchV2Executor = invocation.route.plane === "win"
|
||||
? { fs: createWindowsApplyPatchFileSystem(invocation, (remoteCommand, input) => runRemoteSshWebSocketCaptureRemoteCommand(session, invocation, remoteCommand, input)) }
|
||||
: { run: (command, input) => runRemoteSshWebSocketCapture(session, invocation, command, input) };
|
||||
: invocation.route.plane === "host"
|
||||
? { fs: createPosixApplyPatchFileSystem(invocation, (command, input) => runRemoteSshWebSocketCapture(session, invocation, command, input)) }
|
||||
: { run: (command, input) => runRemoteSshWebSocketCapture(session, invocation, command, input) };
|
||||
return await runApplyPatchV2({
|
||||
executor,
|
||||
stdin: process.stdin,
|
||||
|
||||
Reference in New Issue
Block a user