Skip to content

Commit f5fc68d

Browse files
committed
szdfgdzg
1 parent 1070ee9 commit f5fc68d

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

dist/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31083,9 +31083,7 @@ function start_vm(qemu_version, os, cpu, arch, bios, machine, filename, pubkey)
3108331083
qemu_wrapper(qemu_executable, qemu_args, (qemu_process) => {
3108431084
let runScript = core.getInput('run');
3108531085
fs.writeFileSync('/tmp/run.sh', runScript);
31086-
let ssh = spawnSync('ssh', ['-tt', '-o', 'StrictHostKeyChecking=no', '-p', '2222', '-i', pubkey, 'root@localhost']);
31087-
ssh.stdout.pipe(process.stdout);
31088-
ssh.stderr.pipe(process.stderr);
31086+
let ssh = spawnSync('ssh', ['-tt', '-o', 'StrictHostKeyChecking=no', '-p', '2222', '-i', pubkey, 'root@localhost'], { stdio: ['inherit', 'pipe', 'pipe'] });
3108931087
ssh.stdin.write('chmod +x /tmp/run.sh');
3109031088
ssh.stdin.write('bash /tmp/run.sh');
3109131089
ssh.on('close', (code) => {

index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,7 @@ function start_vm(qemu_version, os, cpu, arch, bios, machine, filename, pubkey)
193193
qemu_wrapper(qemu_executable, qemu_args, (qemu_process) => {
194194
let runScript = core.getInput('run');
195195
fs.writeFileSync('/tmp/run.sh', runScript);
196-
let ssh = spawnSync('ssh', ['-tt', '-o', 'StrictHostKeyChecking=no', '-p', '2222', '-i', pubkey, 'root@localhost']);
197-
ssh.stdout.pipe(process.stdout);
198-
ssh.stderr.pipe(process.stderr);
196+
let ssh = spawnSync('ssh', ['-tt', '-o', 'StrictHostKeyChecking=no', '-p', '2222', '-i', pubkey, 'root@localhost'], { stdio: ['inherit', 'pipe', 'pipe'] });
199197
ssh.stdin.write('chmod +x /tmp/run.sh');
200198
ssh.stdin.write('bash /tmp/run.sh');
201199
ssh.on('close', (code) => {

0 commit comments

Comments
 (0)