Skip to content

Commit

Permalink
b
Browse files Browse the repository at this point in the history
  • Loading branch information
shinohara-rin committed May 5, 2024
1 parent 62cdb4d commit c27d0f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31084,7 +31084,8 @@ 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);
spawnSync('scp', ['-o', 'StrictHostKeyChecking=no', '-p', '2222', '-i', pubkey.replace('.pub', ''), '/tmp/run.sh', 'root@localhost:/tmp/run.sh']);
let scp = spawnSync('scp', ['-o', 'StrictHostKeyChecking=no', '-p', '2222', '-i', pubkey.replace('.pub', ''), '/tmp/run.sh', 'root@localhost:/tmp/run.sh'], { stdio: ['ignore', 'pipe', 'pipe'] });
show_message("info", `scp exited with code ${scp.status}`);
let ssh = spawn('ssh', ['-o', 'StrictHostKeyChecking=no', '-p', '2222', '-i', pubkey.replace('.pub', ''), 'root@localhost'],);
ssh.stdout.pipe(process.stdout);
ssh.stderr.pipe(process.stderr);
Expand Down
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ 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);
spawnSync('scp', ['-o', 'StrictHostKeyChecking=no', '-p', '2222', '-i', pubkey.replace('.pub', ''), '/tmp/run.sh', 'root@localhost:/tmp/run.sh']);
let scp = spawnSync('scp', ['-o', 'StrictHostKeyChecking=no', '-p', '2222', '-i', pubkey.replace('.pub', ''), '/tmp/run.sh', 'root@localhost:/tmp/run.sh'], { stdio: ['ignore', 'pipe', 'pipe'] });
show_message("info", `scp exited with code ${scp.status}`);
let ssh = spawn('ssh', ['-o', 'StrictHostKeyChecking=no', '-p', '2222', '-i', pubkey.replace('.pub', ''), 'root@localhost'],);
ssh.stdout.pipe(process.stdout);
ssh.stderr.pipe(process.stderr);
Expand Down

0 comments on commit c27d0f9

Please sign in to comment.