From b9599383cc418db377fa8e24b1d59aca486b351a Mon Sep 17 00:00:00 2001 From: Rin Date: Fri, 3 May 2024 20:58:24 +0800 Subject: [PATCH] you've gotta be kidding... --- dist/index.js | 14 +++++++------- index.js | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/dist/index.js b/dist/index.js index 565bee7..e1a1766 100644 --- a/dist/index.js +++ b/dist/index.js @@ -31021,30 +31021,30 @@ function ensure_host_ssh_key() { function qemu_wrapper(qemu_cmd, qemu_args, ready_callback) { show_message("info", 'starting qemu process with command: ' + qemu_cmd + ' ' + qemu_args.join(' ')); - const qemuProcess = spawn(qemu_cmd, qemu_args); + const qemu_process = spawn(qemu_cmd, qemu_args); let waitForLogin = (() => { let concat = '' return (data) => { concat += data.toString() if (concat.includes('login')) { - ready_callback(qemuProcess) + ready_callback(qemu_process) waitForLogin = () => { } } } })() - qemuProcess.stderr.pipe(process.stderr) + qemu_process.stderr.pipe(process.stderr) - qemuProcess.stdout.on('data', (data) => { + qemu_process.stdout.on('data', (data) => { waitForLogin(data) }); - qemuProcess.on('close', (code) => { + qemu_process.on('close', (code) => { show_message("info", `qemu exited with code ${code}`); }); - return qemuProcess; + return qemu_process; } function start_vm(qemu_version, os, cpu, arch, bios, machine, filename, pubkey) { @@ -31133,7 +31133,7 @@ function setup_sshkey(pubkey, qemu_process, ready_callback) { } } })() - qemuProcess.stdout.on('data', waitForKey); + qemu_process.stdout.on('data', waitForKey); } function ensure_install_deps() { diff --git a/index.js b/index.js index 74c5c43..8193996 100644 --- a/index.js +++ b/index.js @@ -131,30 +131,30 @@ function ensure_host_ssh_key() { function qemu_wrapper(qemu_cmd, qemu_args, ready_callback) { show_message("info", 'starting qemu process with command: ' + qemu_cmd + ' ' + qemu_args.join(' ')); - const qemuProcess = spawn(qemu_cmd, qemu_args); + const qemu_process = spawn(qemu_cmd, qemu_args); let waitForLogin = (() => { let concat = '' return (data) => { concat += data.toString() if (concat.includes('login')) { - ready_callback(qemuProcess) + ready_callback(qemu_process) waitForLogin = () => { } } } })() - qemuProcess.stderr.pipe(process.stderr) + qemu_process.stderr.pipe(process.stderr) - qemuProcess.stdout.on('data', (data) => { + qemu_process.stdout.on('data', (data) => { waitForLogin(data) }); - qemuProcess.on('close', (code) => { + qemu_process.on('close', (code) => { show_message("info", `qemu exited with code ${code}`); }); - return qemuProcess; + return qemu_process; } function start_vm(qemu_version, os, cpu, arch, bios, machine, filename, pubkey) { @@ -243,7 +243,7 @@ function setup_sshkey(pubkey, qemu_process, ready_callback) { } } })() - qemuProcess.stdout.on('data', waitForKey); + qemu_process.stdout.on('data', waitForKey); } function ensure_install_deps() {