Skip to content

Commit

Permalink
r
Browse files Browse the repository at this point in the history
  • Loading branch information
shinohara-rin committed May 5, 2024
1 parent ac118ab commit 13d60b3
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);
let scp = spawnSync('scp', ['-v', '-o', 'StrictHostKeyChecking=no', '-p', '2222', '-i', pubkey.replace('.pub', ''), '/tmp/run.sh', 'root@localhost:/tmp/run.sh'], { stdio: ['ignore', 'pipe', 'pipe'] });
let scp = spawnSync('scp', ['-v', '-o', 'StrictHostKeyChecking=no', '-p', '2222', '-i', pubkey.replace('.pub', ''), '/tmp/run.sh', 'root@localhost:/tmp/run.sh'], { stdio: 'pipe' });
show_message("info", `${scp.output}`);
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);
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);
let scp = spawnSync('scp', ['-v', '-o', 'StrictHostKeyChecking=no', '-p', '2222', '-i', pubkey.replace('.pub', ''), '/tmp/run.sh', 'root@localhost:/tmp/run.sh'], { stdio: ['ignore', 'pipe', 'pipe'] });
let scp = spawnSync('scp', ['-v', '-o', 'StrictHostKeyChecking=no', '-p', '2222', '-i', pubkey.replace('.pub', ''), '/tmp/run.sh', 'root@localhost:/tmp/run.sh'], { stdio: 'pipe' });
show_message("info", `${scp.output}`);
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);
Expand Down

0 comments on commit 13d60b3

Please sign in to comment.