diff --git a/dist/index.js b/dist/index.js index da5362b..496341c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -31083,7 +31083,9 @@ 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 = spawn('ssh', ['-tt', '-o', 'StrictHostKeyChecking=no', '-p', '2222', '-i', pubkey, 'root@localhost'], { stdio: ['inherit', 'pipe', 'pipe'] }); + let ssh = spawn('ssh', ['-tt', '-o', 'StrictHostKeyChecking=no', '-p', '2222', '-i', pubkey, 'root@localhost'],); + ssh.stdout.pipe(process.stdout); + ssh.stderr.pipe(process.stderr); ssh.stdin.write(`chmod +x /tmp/run.sh\n/tmp/run.sh\n`); ssh.on('close', (code) => { show_message("info", `ssh exited with code ${code}`); diff --git a/index.js b/index.js index eb907c8..f1dcdde 100644 --- a/index.js +++ b/index.js @@ -193,7 +193,9 @@ 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 = spawn('ssh', ['-tt', '-o', 'StrictHostKeyChecking=no', '-p', '2222', '-i', pubkey, 'root@localhost'], { stdio: ['inherit', 'pipe', 'pipe'] }); + let ssh = spawn('ssh', ['-tt', '-o', 'StrictHostKeyChecking=no', '-p', '2222', '-i', pubkey, 'root@localhost'],); + ssh.stdout.pipe(process.stdout); + ssh.stderr.pipe(process.stderr); ssh.stdin.write(`chmod +x /tmp/run.sh\n/tmp/run.sh\n`); ssh.on('close', (code) => { show_message("info", `ssh exited with code ${code}`);