Skip to content

Commit

Permalink
zdrghu
Browse files Browse the repository at this point in the history
  • Loading branch information
shinohara-rin committed May 5, 2024
1 parent 82f437d commit cd748f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31084,7 +31084,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 = spawn('ssh', ['-tt', '-o', 'StrictHostKeyChecking=no', '-p', '2222', '-i', pubkey.split('.')[0], 'root@localhost'],);
let ssh = spawn('ssh', ['-tt', '-o', 'StrictHostKeyChecking=no', '-p', '2222', '-i', pubkey.replace('.pub', ''), '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`);
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,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 = spawn('ssh', ['-tt', '-o', 'StrictHostKeyChecking=no', '-p', '2222', '-i', pubkey.split('.')[0], 'root@localhost'],);
let ssh = spawn('ssh', ['-tt', '-o', 'StrictHostKeyChecking=no', '-p', '2222', '-i', pubkey.replace('.pub', ''), '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`);
Expand Down

0 comments on commit cd748f6

Please sign in to comment.