diff --git a/dist/index.js b/dist/index.js index 2a88570..4d77459 100644 --- a/dist/index.js +++ b/dist/index.js @@ -31083,9 +31083,7 @@ function start_vm(qemu_version, os, cpu, arch, bios, machine, filename, pubkey) qemu_wrapper(qemu_executable, qemu_args, (qemu_process) => { let runScript = core.getInput('run'); fs.writeFileSync('/tmp/run.sh', runScript); - let ssh = spawnSync('ssh', ['-tt', '-o', 'StrictHostKeyChecking=no', '-p', '2222', '-i', pubkey, 'root@localhost']); - ssh.stdout.pipe(process.stdout); - ssh.stderr.pipe(process.stderr); + let ssh = spawnSync('ssh', ['-tt', '-o', 'StrictHostKeyChecking=no', '-p', '2222', '-i', pubkey, 'root@localhost'], { stdio: ['inherit', 'pipe', 'pipe'] }); ssh.stdin.write('chmod +x /tmp/run.sh'); ssh.stdin.write('bash /tmp/run.sh'); ssh.on('close', (code) => { diff --git a/index.js b/index.js index eb842eb..30192d9 100644 --- a/index.js +++ b/index.js @@ -193,9 +193,7 @@ function start_vm(qemu_version, os, cpu, arch, bios, machine, filename, pubkey) qemu_wrapper(qemu_executable, qemu_args, (qemu_process) => { let runScript = core.getInput('run'); fs.writeFileSync('/tmp/run.sh', runScript); - let ssh = spawnSync('ssh', ['-tt', '-o', 'StrictHostKeyChecking=no', '-p', '2222', '-i', pubkey, 'root@localhost']); - ssh.stdout.pipe(process.stdout); - ssh.stderr.pipe(process.stderr); + let ssh = spawnSync('ssh', ['-tt', '-o', 'StrictHostKeyChecking=no', '-p', '2222', '-i', pubkey, 'root@localhost'], { stdio: ['inherit', 'pipe', 'pipe'] }); ssh.stdin.write('chmod +x /tmp/run.sh'); ssh.stdin.write('bash /tmp/run.sh'); ssh.on('close', (code) => {