Skip to content

Commit

Permalink
why
Browse files Browse the repository at this point in the history
  • Loading branch information
shinohara-rin committed May 5, 2024
1 parent de1d4e8 commit cd0ebdf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand Down
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand Down

0 comments on commit cd0ebdf

Please sign in to comment.