Skip to content

Commit de1d4e8

Browse files
committed
hmm
1 parent f5fc68d commit de1d4e8

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

dist/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31083,9 +31083,8 @@ function start_vm(qemu_version, os, cpu, arch, bios, machine, filename, pubkey)
3108331083
qemu_wrapper(qemu_executable, qemu_args, (qemu_process) => {
3108431084
let runScript = core.getInput('run');
3108531085
fs.writeFileSync('/tmp/run.sh', runScript);
31086-
let ssh = spawnSync('ssh', ['-tt', '-o', 'StrictHostKeyChecking=no', '-p', '2222', '-i', pubkey, 'root@localhost'], { stdio: ['inherit', 'pipe', 'pipe'] });
31087-
ssh.stdin.write('chmod +x /tmp/run.sh');
31088-
ssh.stdin.write('bash /tmp/run.sh');
31086+
let ssh = spawn('ssh', ['-tt', '-o', 'StrictHostKeyChecking=no', '-p', '2222', '-i', pubkey, 'root@localhost'], { stdio: ['inherit', 'pipe', 'pipe'] });
31087+
ssh.stdin.write(`chmod +x /tmp/run.sh\n/tmp/run.sh\n`);
3108931088
ssh.on('close', (code) => {
3109031089
show_message("info", `ssh exited with code ${code}`);
3109131090
qemu_process.kill();

index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,8 @@ function start_vm(qemu_version, os, cpu, arch, bios, machine, filename, pubkey)
193193
qemu_wrapper(qemu_executable, qemu_args, (qemu_process) => {
194194
let runScript = core.getInput('run');
195195
fs.writeFileSync('/tmp/run.sh', runScript);
196-
let ssh = spawnSync('ssh', ['-tt', '-o', 'StrictHostKeyChecking=no', '-p', '2222', '-i', pubkey, 'root@localhost'], { stdio: ['inherit', 'pipe', 'pipe'] });
197-
ssh.stdin.write('chmod +x /tmp/run.sh');
198-
ssh.stdin.write('bash /tmp/run.sh');
196+
let ssh = spawn('ssh', ['-tt', '-o', 'StrictHostKeyChecking=no', '-p', '2222', '-i', pubkey, 'root@localhost'], { stdio: ['inherit', 'pipe', 'pipe'] });
197+
ssh.stdin.write(`chmod +x /tmp/run.sh\n/tmp/run.sh\n`);
199198
ssh.on('close', (code) => {
200199
show_message("info", `ssh exited with code ${code}`);
201200
qemu_process.kill();

0 commit comments

Comments
 (0)